Bulk asynchronous downloader for multiple file hosts
Python asynciobunkrcyberdropdownloaderdropboxfilestergofilegoogle-drivemediafiremegamega-nzonedrivepatreonpawchivepinterestpixeldraintransfer-ittwitchtwittervk
I wasn't handling MKV's for some reason
Jules-WinnfieldX212b5201f2b9
diff --git a/CHANGELOG.txt b/CHANGELOG.txtindex 86e5fc154..dc18e0990 100644--- a/CHANGELOG.txt+++ b/CHANGELOG.txt@@ -3,4 +3,6 @@ Added instant returns on 404 (page not found)Made my custom log function also output to the Downloader.log file2.14.7-Added handling for .mkv files because apparently that wasn't a thing I was doing.\ No newline at end of file+Added handling for .mkv files because apparently that wasn't a thing I was doing.+Add handling for more direct links from cyberdrop (maybe, might cause issues)+Fixed my instant returns for 400-500 status.\ No newline at end of filediff --git a/cyberdrop_dl/utils/base_functions.py b/cyberdrop_dl/utils/base_functions.pyindex 55acf1d69..456ef3152 100644--- a/cyberdrop_dl/utils/base_functions.py+++ b/cyberdrop_dl/utils/base_functions.py@@ -156,8 +156,11 @@ def check_direct(url: URL):r'fs-...cyberdrop...', r'cdn.bunkr...', r'media-files.bunkr...', r'jpg.church/images/...',r'stream.bunkr...', r'simp..jpg.church']for domain in mapping_direct:+ extension = '.' + str(url).split('.')[-1]if re.search(domain, url.host):return True+ elif extension in FILE_FORMATS['Videos'] or extension in FILE_FORMATS['Images'] or extension in FILE_FORMATS['Audio'] or extension in FILE_FORMATS['Other']:+ return Truereturn Falsediff --git a/cyberdrop_dl/utils/crawlers/Thotsbay_Spider.py b/cyberdrop_dl/utils/crawlers/Thotsbay_Spider.pyindex 608c4dd7f..d8e0d0589 100644--- a/cyberdrop_dl/utils/crawlers/Thotsbay_Spider.py+++ b/cyberdrop_dl/utils/crawlers/Thotsbay_Spider.py@@ -57,8 +57,12 @@ class ThotsbayCrawler():for url in Erome_urls:tasks.append(self.erome_crawler.fetch(session, url))for url in ShareX_urls:+ if check_direct(url):+ Cascade.add_to_album(url.host, "ShareX Loose Files", url, url)tasks.append(self.sharex_crawler.fetch(session, url))for url in Chibisafe_urls:+ if check_direct(url):+ Cascade.add_to_album(url.host, "Chibisafe Loose Files", url, url)tasks.append(self.chibisafe_crawler.fetch(session, url))for url in GoFile_urls:tasks.append(self.gofile_crawler.fetch(session, url))diff --git a/cyberdrop_dl/utils/downloaders.py b/cyberdrop_dl/utils/downloaders.pyindex b4c985766..a4134eb86 100644--- a/cyberdrop_dl/utils/downloaders.py+++ b/cyberdrop_dl/utils/downloaders.py@@ -172,7 +172,7 @@ class Downloader:aiohttp.client_exceptions.ClientResponseError, FailureException) as e:try:resp.close()- if e.code == 404:+ if 400 <= e.code < 500:log("We ran into a 404")returnexcept: