Fix video stream extraction

This commit is contained in:
I-Al-Istannen 2022-01-08 00:27:34 +01:00
parent eac2e34161
commit a99356f2a2

View File

@ -133,7 +133,7 @@ class IliasPage:
# parse it # parse it
json_object = json.loads(json_str) json_object = json.loads(json_str)
streams = [stream for stream in json_object["streams"] if stream["type"] == "video"] streams = [stream for stream in json_object["streams"]]
# and just fetch the lone video url! # and just fetch the lone video url!
if len(streams) == 1: if len(streams) == 1: