1
0
mirror of https://github.com/spaam/svtplay-dl.git synced 2024-11-23 19:55:38 +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))
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 = []