1
0
mirror of https://github.com/spaam/svtplay-dl.git synced 2024-11-24 04:05:39 +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 = []