Bulk asynchronous downloader for multiple file hosts
Python asynciobunkrcyberdropdownloaderdropboxfilestergofilegoogle-drivemediafiremegamega-nzonedrivepatreonpawchivepinterestpixeldraintransfer-ittwitchtwittervk
refactor: log downloads skipped by ignore config (#384)
NTFSvolumed0f44b0c31bb
diff --git a/cyberdrop_dl/downloader/downloader.py b/cyberdrop_dl/downloader/downloader.pyindex 23301c2a9..eab4e217b 100644--- a/cyberdrop_dl/downloader/downloader.py+++ b/cyberdrop_dl/downloader/downloader.py@@ -152,6 +152,7 @@ class Downloader:log(f"Download finished: {media_item.url}", 20)except RestrictedFiletypeError:+ log(f"Download skip {media_item.url} due to ignore_extension config ({media_item.ext})", 10)self.manager.progress_manager.download_progress.add_skipped()self.attempt_task_removal(media_item)diff --git a/cyberdrop_dl/managers/download_manager.py b/cyberdrop_dl/managers/download_manager.pyindex c830f6279..0c2957bde 100644--- a/cyberdrop_dl/managers/download_manager.py+++ b/cyberdrop_dl/managers/download_manager.py@@ -88,10 +88,10 @@ class DownloadManager:"""Checks if the file type is allowed to download."""ignore_options = self.manager.config_manager.settings_data.ignore_optionsvalid_extensions = FILE_FORMATS["Images"] | FILE_FORMATS["Videos"] | FILE_FORMATS["Audio"]- if media_item.ext in FILE_FORMATS["Images"] and ignore_options.exclude_images:+ if media_item.ext.lower() in FILE_FORMATS["Images"] and ignore_options.exclude_images:return False- if media_item.ext in FILE_FORMATS["Videos"] and ignore_options.exclude_videos:+ if media_item.ext.lower() in FILE_FORMATS["Videos"] and ignore_options.exclude_videos:return False- if media_item.ext in FILE_FORMATS["Audio"] and ignore_options.exclude_audio:+ if media_item.ext.lower() in FILE_FORMATS["Audio"] and ignore_options.exclude_audio:return False- return not (ignore_options.exclude_other and media_item.ext not in valid_extensions)+ return not (ignore_options.exclude_other and media_item.ext.lower() not in valid_extensions)