diff --git a/lib/svtplay_dl/service/viaplay.py b/lib/svtplay_dl/service/viaplay.py index 6df7737..ea2bc3f 100644 --- a/lib/svtplay_dl/service/viaplay.py +++ b/lib/svtplay_dl/service/viaplay.py @@ -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":