From 73097dd19af86814ec045f9fd20f789b2d8501aa Mon Sep 17 00:00:00 2001 From: Nikhil Badyal Date: Thu, 13 Oct 2022 22:55:04 +0530 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20Don't=20download=20microg=20if=20Yo?= =?UTF-8?q?uTube=20or=20yt-music=20is=20not=20there?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/downloader.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/downloader.py b/src/downloader.py index bfd5a6b..b28aa03 100644 --- a/src/downloader.py +++ b/src/downloader.py @@ -18,7 +18,7 @@ class Downloader(object): """Files downloader.""" def __init__(self, config: RevancedConfig): - self._CHUNK_SIZE = 2**21 * 5 + self._CHUNK_SIZE = 10485760 self._QUEUE: PriorityQueue[Tuple[float, str]] = PriorityQueue() self._QUEUE_LENGTH = 0 self.config = config @@ -168,7 +168,6 @@ class Downloader(object): ["revanced", "revanced-cli", self.config.normal_cli_jar], ["revanced", "revanced-integrations", self.config.normal_integrations_apk], ["revanced", "revanced-patches", self.config.normal_patches_jar], - ["inotia00", "VancedMicroG", "VancedMicroG-output.apk"], ] if self.config.build_extended: assets += [ @@ -176,6 +175,10 @@ class Downloader(object): ["inotia00", "revanced-integrations", self.config.integrations_apk], ["inotia00", "revanced-patches", self.config.patches_jar], ] + if "youtube" in self.config.apps or "youtube_music" in self.config.apps: + assets += [ + ["inotia00", "VancedMicroG", "VancedMicroG-output.apk"], + ] with ThreadPoolExecutor(7) as executor: executor.map(lambda repo: self.repository(*repo), assets) logger.info("Downloaded revanced microG ,cli, integrations and patches.")