Fix DASH FPS error when SegmentBase is not found

This commit is contained in:
rlaphoenix 2023-07-15 18:08:01 +01:00
parent 883c9ae063
commit f3cfaa3ab3
1 changed files with 1 additions and 1 deletions

View File

@ -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