🎨 Moved apk sources out of config. (#294)

This commit is contained in:
Nikhil Badyal
2023-08-21 13:30:36 +05:30
committed by GitHub
parent e316a1a184
commit 85c68547d6
8 changed files with 93 additions and 77 deletions
+3 -2
View File
@@ -4,6 +4,7 @@ from typing import Any
from loguru import logger
from src.downloader.download import Downloader
from src.downloader.sources import apk_sources
from src.patches import Patches
@@ -18,6 +19,6 @@ class ApkPure(Downloader):
:return: Version of downloaded apk
"""
package_name = Patches.get_package_name(app)
download_url = f"https://d.apkpure.com/b/APK/{package_name}?version=latest"
download_url = apk_sources[app].format(package_name)
self._download(download_url, f"{app}.apk")
logger.debug(f"Downloaded {app} apk from apk_pure_downloader in rt")
logger.debug(f"Downloaded {app} apk from apk_pure_downloader")