mirror of
https://github.com/Garmelon/PFERD.git
synced 2023-12-21 10:23:01 +01:00
Fix video stream extraction
This commit is contained in:
parent
eac2e34161
commit
a99356f2a2
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user