Skip to content

Bulk asynchronous downloader for multiple file hosts

chore: ran ruff

datawhoresf46c5fe8baad
diff --git a/cyberdrop_dl/utils/sorting.py b/cyberdrop_dl/utils/sorting.py
index 238709256..042b723c1 100644
--- a/cyberdrop_dl/utils/sorting.py
+++ b/cyberdrop_dl/utils/sorting.py
@@ -154,7 +154,7 @@ class Sorter:
"""Sorts a video file into the sorted video folder."""
if not self.video_format:
return
-
+
codec = duration = fps = height = resolution = width = None
with contextlib.suppress(RuntimeError, CalledProcessError):
@@ -166,7 +166,11 @@ class Sorter:
codec = props.get("codec_name")
duration = int(float(props.get("duration", 0))) or None
- fps = float(Fraction(props.get("avg_frame_rate", 0))) if str(props.get("avg_frame_rate", 0)) not in {"0/0","0"} else None
+ fps = (
+ float(Fraction(props.get("avg_frame_rate", 0)))
+ if str(props.get("avg_frame_rate", 0)) not in {"0/0", "0"}
+ else None
+ )
if fps:
fps = int(fps) if fps.is_integer() else f"{fps:.2f}"