Skip to content

Bulk asynchronous downloader for multiple file hosts

Fix scraping for embeds on simpcity.

Jules-WinnfieldX666c868ac24a
diff --git a/cyberdrop_dl/__init__.py b/cyberdrop_dl/__init__.py
index 807710503..fed9b50d1 100644
--- a/cyberdrop_dl/__init__.py
+++ b/cyberdrop_dl/__init__.py
@@ -1 +1 @@
-__version__ = "3.3.9"
+__version__ = "3.3.10"
diff --git a/cyberdrop_dl/crawlers/SimpCity_Spider.py b/cyberdrop_dl/crawlers/SimpCity_Spider.py
index dc7eded8c..0ef39693d 100644
--- a/cyberdrop_dl/crawlers/SimpCity_Spider.py
+++ b/cyberdrop_dl/crawlers/SimpCity_Spider.py
@@ -165,8 +165,12 @@ class SimpCityCrawler:
embed_url = re.search(r"https?:\/\/(www\.)?[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,4}\\b([-a-zA-Z0-9@:%_\+.~#?&//=]*)", embed_data)
if embed_url:
- embed_url = URL(embed_url.group(
- 0).replace("www.", ""))
+ embed_url = URL(embed_url.group(0).replace("www.", ""))
+ content_links.append([embed_url, temp_title])
+
+ embed_url = re.search(r"https?:\/\/(www\.)?[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,4}\/[-a-zA-Z0-9@:%._\+~#=]*\/[-a-zA-Z0-9@:?&%._\+~#=]*", embed_data)
+ if embed_url:
+ embed_url = URL(embed_url.group(0).replace("www.", ""))
content_links.append([embed_url, temp_title])
forum_direct_urls = [x for x in content_links if x[0].host in url.host]