From ce95a23dd84858a1ec6e9d7c2325aa52ee749e40 Mon Sep 17 00:00:00 2001 From: Johan Andersson Date: Mon, 19 Apr 2021 22:33:33 +0200 Subject: [PATCH] svtplay: fix a crash downloading clip fixes: #1363 --- lib/svtplay_dl/service/svtplay.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/svtplay_dl/service/svtplay.py b/lib/svtplay_dl/service/svtplay.py index e528bdf..7956049 100644 --- a/lib/svtplay_dl/service/svtplay.py +++ b/lib/svtplay_dl/service/svtplay.py @@ -261,7 +261,7 @@ class Svtplay(Service, MetadataThumbMixin): vid = data["video"]["svtId"] for seasons in data["associatedContent"]: for i in seasons["items"]: - if i["item"]["videoSvtId"] == vid: + if i["item"]["videoSvtId"] == vid and "positionInSeason" in i["item"]: match = re.search(r"S.song (\d+)", i["item"]["positionInSeason"]) if match: return match.group(1)