From f3cfaa3ab38581009c2645cf0f232fe7d773e7b1 Mon Sep 17 00:00:00 2001 From: rlaphoenix Date: Sat, 15 Jul 2023 18:08:01 +0100 Subject: [PATCH] Fix DASH FPS error when SegmentBase is not found --- devine/core/manifests/dash.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/devine/core/manifests/dash.py b/devine/core/manifests/dash.py index 86d8692..22035c9 100644 --- a/devine/core/manifests/dash.py +++ b/devine/core/manifests/dash.py @@ -154,7 +154,7 @@ class DASH: bitrate=get("bandwidth") or None, width=get("width") or 0, height=get("height") or 0, - fps=get("frameRate") or rep.find("SegmentBase", {}).get("timescale") or None + fps=get("frameRate") or (rep.find("SegmentBase") or {}).get("timescale") or None ) elif content_type == "audio": track_type = Audio