mirror of
https://github.com/sotam0316/docker-py-revanced.git
synced 2026-04-24 19:38:36 +09:00
🐛 Files not downloaded again & again
This commit is contained in:
+1
-1
@@ -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
|
||||
TWITTER_INTEGRATIONS_DL=local://integrations.apk
|
||||
|
||||
@@ -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}")
|
||||
|
||||
Reference in New Issue
Block a user