Skip to content

Bulk asynchronous downloader for multiple file hosts

Update kemono_crawler.py

Jacob7b60db8f166d
diff --git a/cyberdrop_dl/scraper/crawlers/kemono_crawler.py b/cyberdrop_dl/scraper/crawlers/kemono_crawler.py
index 3ea7d4163..77d8c7f31 100644
--- a/cyberdrop_dl/scraper/crawlers/kemono_crawler.py
+++ b/cyberdrop_dl/scraper/crawlers/kemono_crawler.py
@@ -137,7 +137,7 @@ class KemonoCrawler(Crawler):
yarl_links = []
all_links = [x.group().replace(".md.", ".") for x in
- re.finditer(r"(?:http.*?)(?=($|\n|\r\n|\r|\s|\"|\[/URL]|']\[|]\[|\[/img]|</a>|</p>))", content)]
+ re.finditer(r"(?:http.*?)(?=($|\n|\r\n|\r|\s|\"|\[/URL]|']\[|]\[|\[/img]|</a>|</p>))", content)]
for link in all_links:
yarl_links.append(URL(link))
@@ -196,7 +196,7 @@ class KemonoCrawler(Crawler):
return service, user, post
async def create_new_scrape_item(self, link: URL, old_scrape_item: ScrapeItem, user: str, title: str, post_id: str,
- date: str, add_parent: Optional[URL] = None) -> None:
+ date: str, add_parent: Optional[URL] = None) -> None:
"""Creates a new scrape item with the same parent as the old scrape item"""
post_title = None
if self.manager.config_manager.settings_data['Download_Options']['separate_posts']: