Bulk asynchronous downloader for multiple file hosts
Python asynciobunkrcyberdropdownloaderdropboxfilestergofilegoogle-drivemediafiremegamega-nzonedrivepatreonpawchivepinterestpixeldraintransfer-ittwitchtwittervk
Fix Xenforo Attachment Extension Check
Jacobd233e2b02b3a
diff --git a/cyberdrop_dl/utils/utilities.py b/cyberdrop_dl/utils/utilities.pyindex ae619a96e..81ed1c3c8 100644--- a/cyberdrop_dl/utils/utilities.py+++ b/cyberdrop_dl/utils/utilities.py@@ -118,8 +118,9 @@ def get_filename_and_ext(filename: str, forum: bool = False) -> tuple[str, str]:filename_as_path = Path(filename)if not filename_as_path.suffix:raise NoExtensionError- if filename_as_path.suffix.isnumeric() and forum:+ if filename_as_path.suffix[1:].isnumeric() and forum:name, ext = filename_as_path.name.rsplit("-", 1)+ ext = ext.replace(filename_as_path.suffix, "")filename_as_path = Path(f"{name}.{ext}")if len(filename_as_path.suffix) > 5:raise InvalidExtensionError