Fix DASH FPS error when SegmentBase is not found
This commit is contained in:
@@ -154,7 +154,7 @@ class DASH:
|
|||||||
bitrate=get("bandwidth") or None,
|
bitrate=get("bandwidth") or None,
|
||||||
width=get("width") or 0,
|
width=get("width") or 0,
|
||||||
height=get("height") 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":
|
elif content_type == "audio":
|
||||||
track_type = Audio
|
track_type = Audio
|
||||||
|
|||||||
Reference in New Issue
Block a user