Bulk asynchronous downloader for multiple file hosts
Python asynciobunkrcyberdropdownloaderdropboxfilestergofilegoogle-drivemediafiremegamega-nzonedrivepatreonpawchivepinterestpixeldraintransfer-ittwitchtwittervk
Fix thotstbay
Jules-WinnfieldXc1377b463279
diff --git a/cyberdrop_dl/__init__.py b/cyberdrop_dl/__init__.pyindex 44e30b126..33bdc7ef7 100644--- a/cyberdrop_dl/__init__.py+++ b/cyberdrop_dl/__init__.py@@ -1 +1 @@-__version__ = "2.15.3"+__version__ = "2.15.4"diff --git a/cyberdrop_dl/utils/crawlers/Thotsbay_Spider.py b/cyberdrop_dl/utils/crawlers/Thotsbay_Spider.pyindex 7578c11be..50aad4e41 100644--- a/cyberdrop_dl/utils/crawlers/Thotsbay_Spider.py+++ b/cyberdrop_dl/utils/crawlers/Thotsbay_Spider.py@@ -118,6 +118,8 @@ class ThotsbayCrawler():link = link.get('data-src')if link.endswith("/"):link = link[:-1]+ if link.startswith('/'):+ link = domain / link[1:]content_links.append(URL(link))links = post.select("div[class='bbImageWrapper lazyload js-lbImage']")@@ -128,7 +130,7 @@ class ThotsbayCrawler():if link.startswith('//'):link = "https:" + linkelif link.startswith('/'):- link = domain / link+ link = domain / link[1:]content_links.append(URL(link))links = post.select("video source")@@ -139,11 +141,9 @@ class ThotsbayCrawler():if link.startswith('//'):link = "https:" + linkelif link.startswith('/'):- link = domain / link+ link = domain / link[1:]content_links.append(URL(link))--attachments_block = post.select_one("section[class=message-attachments]")links = attachments_block.select("a[class='file-preview js-lbImage']") if attachments_block else []for link in links:diff --git a/cyberdrop_dl/utils/data_classes.py b/cyberdrop_dl/utils/data_classes.pyindex aed63217a..f7f709149 100644--- a/cyberdrop_dl/utils/data_classes.py+++ b/cyberdrop_dl/utils/data_classes.py@@ -40,6 +40,8 @@ class DomainItem:self.albums[title] = albumasync def append_title(self, title):+ if not title:+ returnnew_albums = {}for album_str, album in self.albums.items():new_title = title+'/'+album_str@@ -80,6 +82,8 @@ class CascadeItem:return Trueasync def append_title(self, title):+ if not title:+ returnfor domain_str, domain in self.domains.items():new_albums = {}for album_str, album in domain.albums.items():