mirror of
https://github.com/spaam/svtplay-dl.git
synced 2024-11-24 04:05:39 +01:00
svtplay: don’t crash when we can’t get any HLS streams
This commit is contained in:
parent
bcccfd3e86
commit
72f04e3b47
@ -79,6 +79,7 @@ class Svtplay(Service, OpenGraphThumbMixin):
|
|||||||
|
|
||||||
if parse.path.find("m3u8") > 0:
|
if parse.path.find("m3u8") > 0:
|
||||||
streams = hlsparse(i["url"])
|
streams = hlsparse(i["url"])
|
||||||
|
if streams:
|
||||||
for n in list(streams.keys()):
|
for n in list(streams.keys()):
|
||||||
yield HLS(copy.copy(options), streams[n], n)
|
yield HLS(copy.copy(options), streams[n], n)
|
||||||
elif parse.path.find("f4m") > 0:
|
elif parse.path.find("f4m") > 0:
|
||||||
|
Loading…
Reference in New Issue
Block a user