Bulk asynchronous downloader for multiple file hosts
Python asynciobunkrcyberdropdownloaderdropboxfilestergofilegoogle-drivemediafiremegamega-nzonedrivepatreonpawchivepinterestpixeldraintransfer-ittwitchtwittervk
Add message for failure if possible. (Mostly for pixeldrain)
Jules-WinnfieldXce4c2c2be50a
diff --git a/Pipfile b/Pipfileindex 402d7fbd0..b98495af2 100644--- a/Pipfile+++ b/Pipfile@@ -8,7 +8,7 @@ aiofiles = "==22.1.0"aiohttp = "==3.8.3"beautifulsoup4 = "==4.11.1"certifi = "==2022.9.24"-colorama = "==0.4.5"+colorama = "==0.4.6"gofile_client = "==1.0.1"myjdapi = "==1.1.6"PyYAML = "==6.0"diff --git a/cyberdrop_dl/client/downloaders.py b/cyberdrop_dl/client/downloaders.pyindex caf89d2e8..7979ea2b7 100644--- a/cyberdrop_dl/client/downloaders.py+++ b/cyberdrop_dl/client/downloaders.py@@ -270,8 +270,11 @@ class Downloader:if await self.check_exclude(filename):await self.download_file(url, referral=referral, filename=filename, session=session,show_progress=show_progress)- except Exception:- await log(f"\nError attempting {url}")+ except Exception as e:+ if hasattr(e, "message"):+ await log(f"\nError attempting {url} ({e.message})")+ else:+ await log(f"\nError attempting {url}")async def download_all(self, album_obj: AlbumItem, session: DownloadSession, show_progress: bool = True) -> None:"""Download the data from all given links and store them into corresponding files."""diff --git a/cyberdrop_dl/main.py b/cyberdrop_dl/main.pyindex a80987580..1c3299c72 100644--- a/cyberdrop_dl/main.py+++ b/cyberdrop_dl/main.py@@ -67,7 +67,7 @@ async def handle_args(args: argparse.Namespace):print_args['simpcity_password'] = '!REDACTED!'print_args['jdownloader_password'] = '!REDACTED!'- await log("Creating Config")+ logging.debug("Creating Config")cmd_args = Namespace(**vars(args)).__dict__await create_config(args.config_file, print_args)diff --git a/requirements.txt b/requirements.txtindex 40909a31d..bae7df0ab 100644--- a/requirements.txt+++ b/requirements.txt@@ -2,7 +2,7 @@ aiofiles==22.1.0aiohttp==3.8.3beautifulsoup4==4.11.1certifi==2022.9.24-colorama==0.4.5+colorama==0.4.6gofile_client==1.0.1myjdapi==1.1.6PyYAML==6.0diff --git a/setup.cfg b/setup.cfgindex bf5572a30..98bbdb7bf 100644--- a/setup.cfg+++ b/setup.cfg@@ -19,7 +19,7 @@ install_requires =aiohttp>=3.8.3beautifulsoup4>=4.11.1certifi>=2022.9.24- colorama>=0.4.5+ colorama>=0.4.6gofile_client>=1.0.1myjdapi>=1.1.6PyYAML>=6.0