Skip to content

Bulk asynchronous downloader for multiple file hosts

fix handling of videos without a video stream

Jules-WinnfieldXcbc6d2405b35
diff --git a/cyberdrop_dl/__init__.py b/cyberdrop_dl/__init__.py
index b8ace7e66..836010981 100644
--- a/cyberdrop_dl/__init__.py
+++ b/cyberdrop_dl/__init__.py
@@ -1 +1 @@
-__version__ = "5.0.63"
+__version__ = "5.0.64"
diff --git a/cyberdrop_dl/utils/sorting.py b/cyberdrop_dl/utils/sorting.py
index 5debb4959..3b6e1c552 100644
--- a/cyberdrop_dl/utils/sorting.py
+++ b/cyberdrop_dl/utils/sorting.py
@@ -126,12 +126,17 @@ class Sorter:
"""Sorts a video file into the sorted video folder"""
self.video_count += 1
- props = get_video_properties(str(file))
- height = str(props['height'])
- width = str(props['width'])
- resolution = f"{width}x{height}"
- frames_per_sec = str(props['avg_frame_rate'])
- codec = str(props['codec_name'])
+ try:
+ props = get_video_properties(str(file))
+ height = str(props['height'])
+ width = str(props['width'])
+ resolution = f"{width}x{height}"
+ frames_per_sec = str(props['avg_frame_rate'])
+ codec = str(props['codec_name'])
+ except RuntimeError:
+ resolution = "Unknown"
+ frames_per_sec = "Unknown"
+ codec = "Unknown"
parent_name = file.parent.name
filename, ext = file.stem, file.suffix
diff --git a/pyproject.toml b/pyproject.toml
index c1167b4b6..9867aaf33 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -1,6 +1,6 @@
[tool.poetry]
name = "cyberdrop-dl"
-version = "5.0.63"
+version = "5.0.64"
description = "Bulk downloader for multiple file hosts"
authors = ["Jules Winnfield <[email protected]>"]
readme = "README.md"