Skip to content

Bulk asynchronous downloader for multiple file hosts

Add a little error handling

Jules-WinnfieldXb7a09812e3d7
diff --git a/cyberdrop_dl/utils/crawlers/Thotsbay_Spider.py b/cyberdrop_dl/utils/crawlers/Thotsbay_Spider.py
index 99fe3b0a0..9e858f10a 100644
--- a/cyberdrop_dl/utils/crawlers/Thotsbay_Spider.py
+++ b/cyberdrop_dl/utils/crawlers/Thotsbay_Spider.py
@@ -46,7 +46,12 @@ class ThotsbayCrawler():
if self.username and self.password:
await self.login(session)
- ShareX_urls, Chibisafe_urls, Erome_urls, GoFile_urls, Thotsbay_urls, Anonfile_urls, title = await self.parse(session, url, Cascade)
+ try:
+ ShareX_urls, Chibisafe_urls, Erome_urls, GoFile_urls, Thotsbay_urls, Anonfile_urls, title = await self.parse(session, url, Cascade)
+ except:
+ log("Error handling " + str(url))
+ logger.debug("Error handling " + str(url))
+ return
tasks = []
for url in Erome_urls:
tasks.append(self.erome_crawler.fetch(session, url))
diff --git a/start.py b/start.py
index 8fa74ce07..668a21471 100644
--- a/start.py
+++ b/start.py
@@ -1,4 +1,5 @@
from cyberdrop_dl.main import main as main_dl
+import sys
if __name__ == '__main__':
@@ -7,4 +8,5 @@ if __name__ == '__main__':
This file is intended for development usage ONLY.
""")
if input("Keep going? (y/N) ") == "y":
+ sys.argv = ['--disable-attempt-limit']
main_dl()