From 4d7431f0ad431d0bbc6fdb18fcb14cf0c57e595e Mon Sep 17 00:00:00 2001 From: Johan Andersson Date: Wed, 14 Apr 2021 08:22:09 +0200 Subject: [PATCH] svtplay: forgot fix for all-episodes --- lib/svtplay_dl/service/svtplay.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) 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 = []