mirror of
https://github.com/spaam/svtplay-dl.git
synced 2024-11-27 13:44:14 +01:00
viafree: dont crash on empty video info
This commit is contained in:
parent
b5694e4d07
commit
95045abc8c
@ -77,7 +77,7 @@ class Viafree(Service, OpenGraphThumbMixin):
|
||||
janson = res.json()
|
||||
stream = janson["embedded"]["prioritizedStreams"][0]["links"]["stream"]
|
||||
|
||||
if video["_embedded"]["program"]["_links"]["streamLink"]:
|
||||
if video["_embedded"]["program"]["_links"]["streamLink"] and stream["href"]:
|
||||
parse = urlparse(stream["href"])
|
||||
query = parse_qs(parse.query)
|
||||
query.pop("filter", None)
|
||||
|
Loading…
Reference in New Issue
Block a user