mirror of
https://github.com/spaam/svtplay-dl.git
synced 2024-11-24 04:05:39 +01:00
svtplay: in some cases there is no season slug for videos
This commit is contained in:
parent
0ae031b8ac
commit
dfcae7456e
@ -165,6 +165,11 @@ class Svtplay(Service, OpenGraphThumbMixin):
|
||||
for i in items:
|
||||
if "sasong" in i["slug"]:
|
||||
for n in i["videos"]:
|
||||
if n["url"] not in videos:
|
||||
videos.append(n["url"])
|
||||
if "senast" in i["slug"]:
|
||||
for n in i["videos"]:
|
||||
if n["url"] not in videos:
|
||||
videos.append(n["url"])
|
||||
episodes = [urljoin("http://www.svtplay.se", x) for x in videos]
|
||||
else:
|
||||
|
Loading…
Reference in New Issue
Block a user