🎨 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
+2 -1
View File
@@ -6,6 +6,7 @@ from bs4 import BeautifulSoup
from scripts.status_check import headers
from src.downloader.download import Downloader
from src.downloader.sources import apk_sources
from src.exceptions import APKSosAPKDownloadFailure
from src.utils import bs4_parser
@@ -36,5 +37,5 @@ class ApkSos(Downloader):
:return: Version of downloaded apk
"""
package_name = self.patcher.get_package_name(app)
download_url = f"https://apksos.com/download-app/{package_name}"
download_url = apk_sources[app].format(package_name)
self.extract_download_link(download_url, app)