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:
parent
391af6f13b
commit
4d7431f0ad
@ -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 = []
|
||||
|
Loading…
Reference in New Issue
Block a user