Github Downloader

This commit is contained in:
Nikhil Badyal
2023-07-12 18:31:25 +05:30
parent 25974e4904
commit df08451a3b
10 changed files with 130 additions and 73 deletions
+3
View File
@@ -4,6 +4,7 @@ from src.downloader.apkmirror import ApkMirror
from src.downloader.apkpure import ApkPure
from src.downloader.apksos import ApkSos
from src.downloader.download import Downloader
from src.downloader.github import Github
from src.downloader.uptodown import UptoDown
from src.patches import Patches
@@ -23,6 +24,8 @@ class DownloaderFactory(object):
patcher : Patcher
config : Config
"""
if app == "patches":
return Github(patcher, config)
if app in config.apk_pure:
return ApkPure(patcher, config)
elif app in config.apk_sos: