Bulk asynchronous downloader for multiple file hosts
Python asynciobunkrcyberdropdownloaderdropboxfilestergofilegoogle-drivemediafiremegamega-nzonedrivepatreonpawchivepinterestpixeldraintransfer-ittwitchtwittervk
Merge branch 'master' into skip
Jules-WinnfieldX065f15c9de6e
diff --cc cyberdrop_dl/main.pyindex d512c07a8,c81e1b551..c66c4a259--- a/cyberdrop_dl/main.py+++ b/cyberdrop_dl/main.py@@@ -62,10 -76,14 +62,10 @@@ async def download_all(args: argparse.Nwith open(input_file, "r", encoding="utf8") as f:links += await regex_links(f.read())thotsbay_auth = AuthData(args.thotsbay_username, args.thotsbay_password)- skip_data = SkipData()- await skip_data.add_skips(args.skip_anonfiles, args.skip_bunkr, args.skip_coomer, args.skip_cyberdrop,- args.skip_cyberfile, args.skip_erome, args.skip_gfycat, args.skip_gofile,- args.skip_jpgchurch, args.skip_kemono, args.skip_pixeldrain, args.skip_pixl,- args.skip_putmega, args.skip_redgif, args.skip_saint)+ skip_data = SkipData(args.skip_hosts)content_object = await scrape(links, args.include_id, thotsbay_auth, args.separate_posts, skip_data)if await content_object.is_empty():- logging.error(f'ValueError No links')+ logging.error('ValueError No links')await log("No links found, check the URL.txt\nIf the link works in your web browser, ""please open an issue ticket with me.", Fore.RED)await log("This program does not currently support password protected albums.", Fore.RED)diff --cc cyberdrop_dl/utils/data_classes.pyindex 34f7e35a6,f589ee896..2d9ed0add--- a/cyberdrop_dl/utils/data_classes.py+++ b/cyberdrop_dl/utils/data_classes.py@@@ -142,9 -139,42 +139,9 @@@ class AuthData@dataclassclass SkipData:- sites = {"anonfiles.com": False, "bunkr": False, "coomer.party": False,- "cyberdrop": False, "cyberfile.is": False, "erome.com": False, "gfycat.com": False,- "gofile.io": False, "jpg.church": False, "kemono.party": False, "pixeldrain.com": False,- "pixl.is": False, "putme.ga": False, "putmega.com": False, "redgifs.com": False,- "saint.to": False, "thotsbay.com": False}-- async def add_skips(self, anonfiles, bunkr, coomer, cyberdrop, cyberfile, erome, gfycat, gofile, jpgchurch,- kemono, pixeldrain, pixl, putmega, redgifs, saint):- if anonfiles:- self.sites['anonfiles.com'] = True- if bunkr:- self.sites['bunkr'] = True- if coomer:- self.sites['coomer.party'] = True- if cyberdrop:- self.sites['cyberdrop'] = True- if cyberfile:- self.sites['cyberfile.is'] = True- if erome:- self.sites['erome.com'] = True- if gfycat:- self.sites['gfycat.com'] = True- if gofile:- self.sites['gofile.io'] = True- if jpgchurch:- self.sites['jpg.church'] = True- if kemono:- self.sites['kemono.party'] = True- if pixeldrain:- self.sites['pixeldrain.com'] = True- if pixl:- self.sites['pixl.is'] = True- if putmega:- self.sites['putme.ga'] = True- self.sites['putmega.com'] = True- if redgifs:- self.sites['redgifs.com'] = True- if saint:- self.sites['saint.to'] = True+ supported_hosts: ClassVar[Tuple[str]] = (- "anonfiles.com", "bunkr", "coomer.party", "cyberdrop", "cyberfile.is",- "erome.com", "gfycat.com", "gofile.io", "jpg.church", "kemono.party",- "pixeldrain.com", "pixl.is", "putme.ga", "putmega.com", "redgifs.com",- "saint.to", "thotsbay.com")++ "anonfiles", "bunkr", "coomer.party", "cyberdrop", "cyberfile",++ "erome", "gfycat", "gofile", "jpg.church", "kemono.party",++ "pixeldrain", "pixl.is", "putme.ga", "putmega.com", "redgifs",++ "saint", "thotsbay")+ sites: List[str]