Skip to content
This repository has been archived by the owner on Jul 5, 2024. It is now read-only.

Commit

Permalink
Move gif sorting to other.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jules-WinnfieldX committed Dec 5, 2023
1 parent 6df071b commit b10e028
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cyberdrop_dl/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "5.0.41"
__version__ = "5.0.42"
5 changes: 5 additions & 0 deletions cyberdrop_dl/utils/sorting.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,11 @@ async def sort_image(self, file: Path, base_name: str) -> None:
"""Sorts an image file into the sorted image folder"""
self.image_count += 1

if ".gif" in file.suffix.lower():
await self.sort_other(file, base_name)
self.other_count -= 1
return

image = Image.open(file)
width, height = image.size
resolution = f"{width}x{height}"
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "cyberdrop-dl"
version = "5.0.41"
version = "5.0.42"
description = "Bulk downloader for multiple file hosts"
authors = ["Jules Winnfield <[email protected]>"]
readme = "README.md"
Expand Down

0 comments on commit b10e028

Please sign in to comment.