mirror of
https://github.com/sotam0316/docker-py-revanced.git
synced 2026-04-25 03:48:37 +09:00
🐛 Failing to fetch latest release
This commit is contained in:
+4
-4
@@ -51,7 +51,7 @@ class APP(object):
|
||||
return ", ".join("%s: %s" % item for item in attrs.items())
|
||||
|
||||
@staticmethod
|
||||
def download(url: str, config: RevancedConfig, assets_filter: str = None) -> str: # type: ignore
|
||||
def download(url: str, config: RevancedConfig, assets_filter: str) -> str:
|
||||
"""Downloader."""
|
||||
from src.downloader.download import Downloader
|
||||
|
||||
@@ -70,14 +70,14 @@ class APP(object):
|
||||
logger.info("Downloading resources for patching.")
|
||||
# Create a list of resource download tasks
|
||||
download_tasks = [
|
||||
("cli", self.cli_dl, config),
|
||||
("integrations", self.integrations_dl, config),
|
||||
("cli", self.cli_dl, config, ".*jar"),
|
||||
("integrations", self.integrations_dl, config, ".*apk"),
|
||||
("patches", self.patches_dl, config, ".*jar"),
|
||||
("patches_json", self.patches_dl, config, ".*json"),
|
||||
]
|
||||
|
||||
# Using a ThreadPoolExecutor for parallelism
|
||||
with ThreadPoolExecutor() as executor:
|
||||
with ThreadPoolExecutor(4) as executor:
|
||||
futures = {
|
||||
resource_name: executor.submit(self.download, *args)
|
||||
for resource_name, *args in download_tasks
|
||||
|
||||
@@ -58,6 +58,11 @@ class Patches(object):
|
||||
key: (value, "_" + value) for key, value in _revanced_app_ids.items()
|
||||
}
|
||||
|
||||
@staticmethod
|
||||
def support_app() -> Dict[str, str]:
|
||||
"""Return supported apps."""
|
||||
return Patches._revanced_app_ids
|
||||
|
||||
def scrap_patches(self, file_name: str) -> Any:
|
||||
"""Scrap Patches."""
|
||||
if os.path.exists(file_name):
|
||||
|
||||
Reference in New Issue
Block a user