mirror of
https://github.com/spaam/svtplay-dl.git
synced 2024-11-27 21:54:17 +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():
|
||||
entry = json.loads(data_entry["data"])
|
||||
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
|
||||
vid = data["video"]["svtId"]
|
||||
break
|
||||
|
Loading…
Reference in New Issue
Block a user