1
0
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:
Johan Andersson 2021-11-10 10:34:17 +01:00
parent b5694e4d07
commit 95045abc8c

View File

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