1
0
mirror of https://github.com/spaam/svtplay-dl.git synced 2024-11-30 15:14:14 +01:00

svtplay: fix a crash when using -A

fixes: #1257
This commit is contained in:
Johan Andersson 2020-09-30 21:11:09 +02:00
parent f5e967bffc
commit ddefda1cf6

View File

@ -217,7 +217,7 @@ class Svtplay(Service, MetadataThumbMixin):
keys.append(i["id"]) keys.append(i["id"])
for i in keys: for i in keys:
for n in janson[i]["items"]: for n in janson[i]['items({"filter":{"includeFullOppetArkiv":false}})']:
epi = janson[janson[n["id"]]["item"]["id"]] epi = janson[janson[n["id"]]["item"]["id"]]
if "variants" in epi: if "variants" in epi:
for z in epi["variants"]: for z in epi["variants"]: