diff --git a/.env.example b/.env.example index 4e2d005..12ab699 100644 --- a/.env.example +++ b/.env.example @@ -70,4 +70,4 @@ TWITTER_VERSION=latest TWITTER_CLI_DL=local://cli.jar TWITTER_PATCHES_DL=local://patches.jar TWITTER_PATCHES_JSON_DL=local://patches.json -TWITTER_INTEGRATIONS_DL=local://integrations.apk \ No newline at end of file +TWITTER_INTEGRATIONS_DL=local://integrations.apk diff --git a/src/downloader/download.py b/src/downloader/download.py index 94e2a2c..7f3b332 100644 --- a/src/downloader/download.py +++ b/src/downloader/download.py @@ -29,7 +29,7 @@ class Downloader(object): if not url: msg = "No url provided to download" raise DownloadError(msg) - if self.config.dry_run or Path(file_name).exists(): + if self.config.dry_run or self.config.temp_folder.joinpath(file_name).exists(): logger.debug(f"Skipping download of {file_name} from {url}. File already exists or dry running.") return logger.info(f"Trying to download {file_name} from {url}")