Bulk asynchronous downloader for multiple file hosts
Python asynciobunkrcyberdropdownloaderdropboxfilestergofilegoogle-drivemediafiremegamega-nzonedrivepatreonpawchivepinterestpixeldraintransfer-ittwitchtwittervk
Updated .gitignore, updated scraper_helper gif functions to check if a title is provided
cowliquidfaba558ce8a9
diff --git a/.gitignore b/.gitignoreindex 5da5652dd..6239c3baa 100644--- a/.gitignore+++ b/.gitignore@@ -9,4 +9,12 @@ __pycache__/*.egg-info/build/release/-start_dev.py\ No newline at end of file+start_dev.py+.vscode/settings.json++# Scripts+run.bat+input.txt+_download_log.txt+input-test.txt+Unsupported_Urls.txtdiff --git a/cyberdrop_dl/utils/scraper_helper.py b/cyberdrop_dl/utils/scraper_helper.pyindex 3e0fb3ab6..b80e2587b 100644--- a/cyberdrop_dl/utils/scraper_helper.py+++ b/cyberdrop_dl/utils/scraper_helper.py@@ -96,7 +96,10 @@ class ScrapeMapper():scraping_mapper=self, session=self.session)content_url = await self.gfycat_crawler.fetch(self.session, url)if content_url:- await self.Cascade.add_to_album("gfycat.com", f"{title}/gifs", content_url, url)+ if title:+ await self.Cascade.add_to_album("gfycat.com", f"{title}/gifs", content_url, url)+ else:+ await self.Cascade.add_to_album("gfycat.com", "gifs", content_url, url)async def redgifs(self, url: URL, title=None):if not self.redgifs_crawler:@@ -104,7 +107,10 @@ class ScrapeMapper():scraping_mapper=self, session=self.session)content_url = await self.redgifs_crawler.fetch(self.session, url)if content_url:- await self.Cascade.add_to_album("redgifs.com", f"{title}/gifs", content_url, url)+ if title:+ await self.Cascade.add_to_album("redgifs.com", f"{title}/gifs", content_url, url)+ else:+ await self.Cascade.add_to_album("redgifs.com", "gifs", content_url, url)async def map_url(self, url_to_map: URL, title=None):for key, value in self.mapping.items():