Skip to content

Bulk asynchronous downloader for multiple file hosts

rename variable to conform with rest of project.

Jules-WinnfieldX12449758b33b
diff --git a/cyberdrop_dl/scraper/crawlers/coomer_crawler.py b/cyberdrop_dl/scraper/crawlers/coomer_crawler.py
index 3643afcfe..338dea4ca 100644
--- a/cyberdrop_dl/scraper/crawlers/coomer_crawler.py
+++ b/cyberdrop_dl/scraper/crawlers/coomer_crawler.py
@@ -24,7 +24,7 @@ class CoomerCrawler:
self.complete = False
- self.base_domain = URL("https://coomer.su")
+ self.primary_base_domain = URL("https://coomer.su")
self.api_url = URL("https://coomer.su/api/v1")
self.scraped_items: list = []
@@ -114,7 +114,7 @@ class CoomerCrawler:
post_title = post["title"]
async def handle_file(file_obj):
- link = self.base_domain / ("data" + file_obj['path'])
+ link = self.primary_base_domain / ("data" + file_obj['path'])
link = link.with_query({"f": file_obj['name']})
await self.create_new_scrape_item(link, scrape_item, user, post_title, post_id, date)
diff --git a/cyberdrop_dl/scraper/crawlers/kemono_crawler.py b/cyberdrop_dl/scraper/crawlers/kemono_crawler.py
index d0a23ef6f..eae288c6f 100644
--- a/cyberdrop_dl/scraper/crawlers/kemono_crawler.py
+++ b/cyberdrop_dl/scraper/crawlers/kemono_crawler.py
@@ -24,7 +24,7 @@ class KemonoCrawler:
self.complete = False
- self.base_domain = URL("https://kemono.su")
+ self.primary_base_domain = URL("https://kemono.su")
self.api_url = URL("https://kemono.su/api/v1")
self.services = ['patreon', 'fanbox', 'fantia', 'afdian', 'boosty', 'dlsite', 'gumroad', 'subscribestar']
@@ -131,7 +131,7 @@ class KemonoCrawler:
post_title = post["title"] if "title" in post else ""
async def handle_file(file_obj):
- link = self.base_domain / ("data" + file_obj['path'])
+ link = self.primary_base_domain / ("data" + file_obj['path'])
link = link.with_query({"f": file_obj['name']})
await self.create_new_scrape_item(link, scrape_item, user, post_title, post_id, date)