Skip to content

Commit

Permalink
More sorting fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jbsparrow committed Sep 11, 2024
1 parent 69c4621 commit 92c4709
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions cyberdrop_dl/utils/sorting.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,11 @@ async def sort(self) -> None:
tempdownloadfolders = []
for folder in folders:
folder = folder[0]
relative_folder = Path(folder).relative_to(self.download_dir)
base_download_dir = self.download_dir / relative_folder.parts[0]
try:
relative_folder = Path(folder).relative_to(self.download_dir)
base_download_dir = self.download_dir / relative_folder.parts[0]
except ValueError:
continue
if Path(base_download_dir).exists():
tempdownloadfolders.append(Path(folder))
downloadfolders = list(set(tempdownloadfolders))
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-patched"
version = "5.4.65"
version = "5.4.66"
description = "Bulk downloader for multiple file hosts"
authors = ["Jacob B <[email protected]>"]
readme = "README.md"
Expand Down

0 comments on commit 92c4709

Please sign in to comment.