mirror of
https://github.com/spaam/svtplay-dl.git
synced 2024-11-24 04:05:39 +01:00
svtplay: dont crash on non-existing video
This commit is contained in:
parent
524b7cb021
commit
1ec914d370
@ -72,7 +72,7 @@ class Svtplay(Service, MetadataThumbMixin):
|
|||||||
for data_entry in janson["props"]["urqlState"].values():
|
for data_entry in janson["props"]["urqlState"].values():
|
||||||
entry = json.loads(data_entry["data"])
|
entry = json.loads(data_entry["data"])
|
||||||
for key, data in entry.items():
|
for key, data in entry.items():
|
||||||
if key == "detailsPage" and "moreDetails" in data:
|
if key == "detailsPage" and data and "moreDetails" in data:
|
||||||
video_data = data
|
video_data = data
|
||||||
vid = data["video"]["svtId"]
|
vid = data["video"]["svtId"]
|
||||||
break
|
break
|
||||||
|
Loading…
Reference in New Issue
Block a user