1
0
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:
Johan Andersson 2021-03-14 00:09:09 +01:00
parent 524b7cb021
commit 1ec914d370

View File

@ -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