1
0
mirror of https://github.com/spaam/svtplay-dl.git synced 2024-11-27 21:54:17 +01:00

svtplay: forgot fix for all-episodes

This commit is contained in:
Johan Andersson 2021-04-14 08:22:09 +02:00
parent 391af6f13b
commit 4d7431f0ad

View File

@ -168,11 +168,12 @@ class Svtplay(Service, MetadataThumbMixin):
janson = json.loads(match.group(1)) janson = json.loads(match.group(1))
video_data = None video_data = None
for data_entry in janson["props"]["urqlState"].values(): for data_entry in janson["props"]["urqlState"].values():
entry = json.loads(data_entry["data"]) if "data" in data_entry:
for key, data in entry.items(): entry = json.loads(data_entry["data"])
if key == "detailsPage" and data and "heading" in data: for key, data in entry.items():
video_data = data if key == "detailsPage" and data and "heading" in data:
break video_data = data
break
collections = [] collections = []
videos = [] videos = []