Bulk asynchronous downloader for multiple file hosts
Python asynciobunkrcyberdropdownloaderdropboxfilestergofilegoogle-drivemediafiremegamega-nzonedrivepatreonpawchivepinterestpixeldraintransfer-ittwitchtwittervk
fix attachment scraping for forums
Jules-WinnfieldXece5c8ecd674
diff --git a/README.md b/README.mdindex 98045a47f..12f877c3c 100644--- a/README.md+++ b/README.md@@ -1,7 +1,7 @@# `cyberdrop-dl`**Bulk downloader for multiple file hosts**-The latest version of the program is 4.0.15+The latest version of the program is 4.0.16Brand new and improved! Cyberdrop-DL now has an updated paint job, fantastic new look. On top of this it also downloads from different domains simultaneously.diff --git a/cyberdrop_dl/__init__.py b/cyberdrop_dl/__init__.pyindex 2ac6bacd1..4597e24ea 100644--- a/cyberdrop_dl/__init__.py+++ b/cyberdrop_dl/__init__.py@@ -1 +1 @@-__version__ = "4.0.15"+__version__ = "4.0.16"diff --git a/cyberdrop_dl/client/client.py b/cyberdrop_dl/client/client.pyindex 7481dc062..49d8f907b 100644--- a/cyberdrop_dl/client/client.py+++ b/cyberdrop_dl/client/client.py@@ -130,7 +130,7 @@ class DownloadSession:raise_for_status=True, proxy=proxy) as resp:content_type = resp.headers.get('Content-Type')if resp.url == URL("https://bnkr.b-cdn.net/maintenance.mp4"):- raise DownloadFailure(code=resp.status, message="Bunkr under maintenance")+ raise DownloadFailure(code=503, message="Bunkr under maintenance")if 'text' in content_type.lower() or 'html' in content_type.lower():logger.debug("Server for %s is experiencing issues, you are being ratelimited, or cookies have expired", str(media.url))await File_Lock.remove_lock(original_filename)@@ -157,7 +157,7 @@ class DownloadSession:raise_for_status=True, proxy=proxy) as resp:content_type = resp.headers.get('Content-Type')if resp.url == URL("https://bnkr.b-cdn.net/maintenance.mp4"):- raise DownloadFailure(code=resp.status, message="Bunkr under maintenance")+ raise DownloadFailure(code=503, message="Bunkr under maintenance")if 'text' in content_type.lower() or 'html' in content_type.lower():logger.debug("Server for %s is experiencing issues, you are being ratelimited, or cookies have expired", str(media.url))await File_Lock.remove_lock(original_filename)diff --git a/cyberdrop_dl/crawlers/Xenforo_Spider.py b/cyberdrop_dl/crawlers/Xenforo_Spider.pyindex 699a386fb..e82285426 100644--- a/cyberdrop_dl/crawlers/Xenforo_Spider.py+++ b/cyberdrop_dl/crawlers/Xenforo_Spider.py@@ -296,8 +296,8 @@ class XenforoCrawler:domain, temp_title))# Get Attachments- post.select_one("section[class=message-attachments]")- content_links.extend(await self.get_links(post_content, "a[class='file-preview js-lbImage']", "href", domain, temp_title))+ attachments_block = post.select_one("section[class=message-attachments]")+ content_links.extend(await self.get_links(attachments_block, "a[class='file-preview js-lbImage']", "href", domain, temp_title))# Handle linkscontent_links = await self.filter_content_links(cascade, content_links, url, "simpcity")@@ -371,8 +371,8 @@ class XenforoCrawler:content_links.extend(await self.get_embedded(post_content, "span[data-s9e-mediaembed-iframe]", "data-s9e-mediaembed-iframe", domain, temp_title))# Get Attachments- post.select_one("section[class=message-attachments]")- content_links.extend(await self.get_links(post_content, "a[class='file-preview js-lbImage']", "href", domain, temp_title))+ attachments_block = post.select_one("section[class=message-attachments]")+ content_links.extend(await self.get_links(attachments_block, "a[class='file-preview js-lbImage']", "href", domain, temp_title))# Handle linkscontent_links = await self.filter_content_links(cascade, content_links, url, "socialmediagirls")@@ -446,8 +446,8 @@ class XenforoCrawler:content_links.extend(await self.get_embedded(post_content, "span[data-s9e-mediaembed-iframe]", "data-s9e-mediaembed-iframe", domain, temp_title))# Get Attachments- post.select_one("section[class=message-attachments]")- content_links.extend(await self.get_links(post_content, "a[class='file-preview js-lbImage']", "href", domain, temp_title))+ attachments_block = post.select_one("section[class=message-attachments]")+ content_links.extend(await self.get_links(attachments_block, "a[class='file-preview js-lbImage']", "href", domain, temp_title))# Handle linkscontent_links = await self.filter_content_links(cascade, content_links, url, "xbunker")