diff --git a/cyberdrop_dl/__init__.py b/cyberdrop_dl/__init__.py index b862b51f3..cbf51729b 100644 --- a/cyberdrop_dl/__init__.py +++ b/cyberdrop_dl/__init__.py @@ -1 +1 @@ -__version__ = "5.2.22" +__version__ = "5.2.23" diff --git a/cyberdrop_dl/utils/utilities.py b/cyberdrop_dl/utils/utilities.py index ca742d4eb..3236348d6 100644 --- a/cyberdrop_dl/utils/utilities.py +++ b/cyberdrop_dl/utils/utilities.py @@ -162,6 +162,8 @@ async def get_filename_and_ext(filename: str, forum: bool = False) -> Tuple[str, raise NoExtensionFailure() if filename_parts[-1].isnumeric() and forum: filename_parts = filename_parts[0].rsplit('-', 1) + if len(filename_parts[-1]) > 5: + raise NoExtensionFailure() ext = "." + filename_parts[-1].lower() filename = filename_parts[0][:MAX_NAME_LENGTHS['FILE']] if len(filename_parts[0]) > MAX_NAME_LENGTHS['FILE'] else filename_parts[0] filename = filename.strip() diff --git a/pyproject.toml b/pyproject.toml index 068972f24..c3a5d62bd 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "cyberdrop-dl" -version = "5.2.22" +version = "5.2.23" description = "Bulk downloader for multiple file hosts" authors = ["Jules Winnfield "] readme = "README.md"