diff --git a/libs/task/base_task.py b/libs/task/base_task.py index a06bb99..0995312 100644 --- a/libs/task/base_task.py +++ b/libs/task/base_task.py @@ -74,8 +74,11 @@ class BaseTask(object): cache_info = DownloadTask().start(self.path,self.types) cacar_path = cache_info["path"] types = cache_info["type"] + + print(os.path.exists(cacar_path)) + print(cores.download_flag) - if not (os.path.exists(cacar_path) and cores.download_flag): + if (not os.path.exists(cacar_path) and cores.download_flag): print("[-] File download failed! Please download the file manually and try again.") return task_info diff --git a/libs/task/download_task.py b/libs/task/download_task.py index 4fbed69..abc29eb 100644 --- a/libs/task/download_task.py +++ b/libs/task/download_task.py @@ -33,9 +33,9 @@ class DownloadTask(object): if not(path.startswith("http://") or path.startswith("https://")): if not os.path.isdir(path): - return {"path":self.path,"type":types} + return {"path":path,"type":types} else: - return {"path":self.path,"type":self.types} + return {"path":path,"type":types} else: print("[*] Detected that the task is not local, preparing to download file......") cache_path = os.path.join(cores.download_path, file_name)