Bulk asynchronous downloader for multiple file hosts
Python asynciobunkrcyberdropdownloaderdropboxfilestergofilegoogle-drivemediafiremegamega-nzonedrivepatreonpawchivepinterestpixeldraintransfer-ittwitchtwittervk
Minor changes
Jules-WinnfieldX434b37e4540f
diff --git a/cyberdrop_dl/utils/downloaders.py b/cyberdrop_dl/utils/downloaders.pyindex bce4d0062..def36a08e 100644--- a/cyberdrop_dl/utils/downloaders.py+++ b/cyberdrop_dl/utils/downloaders.py@@ -88,7 +88,7 @@ class Downloader:self.max_workers = max_workersself._semaphore = asyncio.Semaphore(max_workers)- self.delay = {'bunkr.is': 1, 'cyberfile.is': 1}+ self.delay = {'bunkr.is': 1.5, 'cyberfile.is': 1}self.throttle_times = {}"""Changed from aiohttp exceptions caught to FailureException to allow for partial downloads."""@@ -212,7 +212,7 @@ class Downloader:async for chunk, _ in resp.content.iter_chunks():await f.write(chunk)progress.update(len(chunk))- resp.close()+ await asyncio.sleep(1)await self.rename_file(filename, url)await self.File_Lock.remove_lock(original_filename)@@ -225,6 +225,7 @@ class Downloader:passtry:+ logger.debug("Error status code: " + e.code)if 400 <= e.code < 500 and e.code != 429:logger.debug("We ran into a 400 level error: %s" % str(e.code))return