Bulk asynchronous downloader for multiple file hosts
Python asynciobunkrcyberdropdownloaderdropboxfilestergofilegoogle-drivemediafiremegamega-nzonedrivepatreonpawchivepinterestpixeldraintransfer-ittwitchtwittervk
try and catch subprocess error.
Jules-WinnfieldX3186ac4a41c8
diff --git a/cyberdrop_dl/utils/sorting.py b/cyberdrop_dl/utils/sorting.pyindex 9a0c3a8ff..a7dc5df5e 100644--- a/cyberdrop_dl/utils/sorting.py+++ b/cyberdrop_dl/utils/sorting.py@@ -1,5 +1,6 @@import asyncioimport itertools+import subprocessfrom pathlib import Pathfrom typing import TYPE_CHECKING@@ -93,7 +94,7 @@ class Sorter:length = str(props.get('duration', "Unknown"))bitrate = str(props.get('bit_rate', "Unknown"))sample_rate = str(props.get('sample_rate', "Unknown"))- except RuntimeError:+ except (RuntimeError, subprocess.CalledProcessError):length = "Unknown"bitrate = "Unknown"sample_rate = "Unknown"@@ -141,7 +142,7 @@ class Sorter:resolution = "Unknown"frames_per_sec = str(props.get('avg_frame_rate', "Unknown"))codec = str(props.get('codec_name', "Unknown"))- except RuntimeError:+ except (RuntimeError, subprocess.CalledProcessError):resolution = "Unknown"frames_per_sec = "Unknown"codec = "Unknown"