diff --git a/lib/svtplay_dl/service/svtplay.py b/lib/svtplay_dl/service/svtplay.py index 75d7d16..e528bdf 100644 --- a/lib/svtplay_dl/service/svtplay.py +++ b/lib/svtplay_dl/service/svtplay.py @@ -168,11 +168,12 @@ class Svtplay(Service, MetadataThumbMixin): janson = json.loads(match.group(1)) video_data = None for data_entry in janson["props"]["urqlState"].values(): - entry = json.loads(data_entry["data"]) - for key, data in entry.items(): - if key == "detailsPage" and data and "heading" in data: - video_data = data - break + if "data" in data_entry: + entry = json.loads(data_entry["data"]) + for key, data in entry.items(): + if key == "detailsPage" and data and "heading" in data: + video_data = data + break collections = [] videos = []