mirror of
https://github.com/sotam0316/docker-py-revanced.git
synced 2026-04-25 03:48:37 +09:00
Merge pull request #104 from nikhilbadyal/provide-apk
Ability to provide apk manually.
This commit is contained in:
@@ -83,3 +83,4 @@ class RevancedConfig:
|
||||
self.alternative_youtube_music_patches = env.list(
|
||||
"ALTERNATIVE_YOUTUBE_MUSIC_PATCHES", []
|
||||
)
|
||||
self.existing_downloaded_apks = env.list("EXISTING_DOWNLOADED_APKS", [])
|
||||
|
||||
+5
-1
@@ -272,8 +272,12 @@ class Downloader(object):
|
||||
|
||||
:param version: version to download
|
||||
:param app: App to download
|
||||
:return: Version of apk
|
||||
:return: Version of apk.
|
||||
"""
|
||||
if app in self.config.existing_downloaded_apks:
|
||||
logger.debug("Will not download apk from the internet as it already exist.")
|
||||
# Returning Latest as I don't know, which version user provided.
|
||||
return "latest"
|
||||
if app in self.config.upto_down:
|
||||
return self.upto_down_downloader(app)
|
||||
elif app in self.config.apk_pure:
|
||||
|
||||
Reference in New Issue
Block a user