mirror of
https://github.com/spaam/svtplay-dl.git
synced 2024-11-27 13:44:14 +01:00
viafree: for some reason they send undefined text in json.
This commit is contained in:
parent
f3db402b82
commit
52d98a8934
@ -49,8 +49,7 @@ class Viafree(Service, OpenGraphThumbMixin):
|
||||
if not match:
|
||||
yield ServiceError("Cant find necessary info")
|
||||
return
|
||||
|
||||
janson = json.loads("{}{}".format("{", match.group(1)))
|
||||
janson = json.loads("{}{}".format("{", match.group(1).replace("undefined", "null")))
|
||||
video = None
|
||||
for play in janson["page"]["blocks"]:
|
||||
if "componentName" in play and play["componentName"] == "player":
|
||||
|
Loading…
Reference in New Issue
Block a user