Scraper improvements (#488)

This commit is contained in:
IMXEren
2024-04-11 23:17:47 +05:30
committed by GitHub
parent f51e68103f
commit 9f8a7cc836
6 changed files with 131 additions and 15 deletions
+1 -2
View File
@@ -11,7 +11,6 @@ from src.downloader.google_drive import GoogleDrive
from src.downloader.sources import (
APK_MIRROR_BASE_URL,
APK_MONK_BASE_URL,
APK_PURE_BASE_APK_URL,
APK_PURE_BASE_URL,
APKS_SOS_BASE_URL,
DRIVE_DOWNLOAD_BASE_URL,
@@ -36,7 +35,7 @@ class DownloaderFactory(object):
"""
if apk_source.startswith(GITHUB_BASE_URL):
return Github(config)
if apk_source.startswith((APK_PURE_BASE_URL, APK_PURE_BASE_APK_URL)):
if apk_source.startswith(APK_PURE_BASE_URL):
return ApkPure(config)
if apk_source.startswith(APKS_SOS_BASE_URL):
return ApkSos(config)