Bulk asynchronous downloader for multiple file hosts
Python asynciobunkrcyberdropdownloaderdropboxfilestergofilegoogle-drivemediafiremegamega-nzonedrivepatreonpawchivepinterestpixeldraintransfer-ittwitchtwittervk
Fix xbunker attachments (kinda)
Jules-WinnfieldXd83a13b711ae
diff --git a/cyberdrop_dl/__init__.py b/cyberdrop_dl/__init__.pyindex 33c47ecd5..348714e52 100644--- a/cyberdrop_dl/__init__.py+++ b/cyberdrop_dl/__init__.py@@ -1 +1 @@-__version__ = "4.2.109"+__version__ = "4.2.111"diff --git a/cyberdrop_dl/crawlers/Xenforo_Spider.py b/cyberdrop_dl/crawlers/Xenforo_Spider.pyindex f3024736f..ba6331ee7 100644--- a/cyberdrop_dl/crawlers/Xenforo_Spider.py+++ b/cyberdrop_dl/crawlers/Xenforo_Spider.py@@ -3,7 +3,7 @@ from __future__ import annotationsimport asyncioimport refrom dataclasses import dataclass, field-from typing import TYPE_CHECKING, Dict, List, Tuple+from typing import TYPE_CHECKING, Dict, List, Tuple, Optionalfrom bs4 import BeautifulSoupfrom yarl import URL@@ -60,6 +60,9 @@ class ParseSpec:attachment_tag: str = "a"attachment_attribute: str = "href"+ extra_images_tag: Optional[str] = field(init=False)+ extra_images_attribute: Optional[str] = field(init=False)+next_page_tag: str = 'a[class="pageNav-jump pageNav-jump--next"]'next_page_attribute: str = "href"@@ -79,6 +82,13 @@ class ParseSpec:if self.domain in ("xbunker", "socialmediagirls"):self.images_attribute = "data-src"+ if self.domain in ("simpcity", "nudostar", "socialmediagirls"):+ self.extra_images_tag = None+ self.extra_images_attribute = None+ if self.domain == "xbunker":+ self.extra_images_tag = "a[class*=js-lbImage]"+ self.extra_images_attribute = "href"+class ForumLogin:def __init__(self, name: str, username: str, password: str):@@ -310,6 +320,10 @@ class XenforoCrawler:attachments_block = post.select_one(spec.attachment_block_tag)links.extend(await self.get_links(attachments_block, spec.attachment_tag, spec.attachment_attribute, domain))+ # Get extras+ if spec.extra_images_tag:+ links.extend(await self.get_links(post_content, spec.extra_images_tag, spec.extra_images_attribute, domain))+content_links.extend([(URL(link), temp_title) for link in links])if self.scrape_single_post: