mirror of
https://github.com/spaam/svtplay-dl.git
synced 2024-11-30 23:24:16 +01:00
viaplay: don’t try to yield empty streams
This commit is contained in:
parent
2a941a6cce
commit
723b7df1c8
@ -111,6 +111,7 @@ class Viaplay(Service, OpenGraphThumbMixin):
|
|||||||
|
|
||||||
if streamj["streams"]["hls"]:
|
if streamj["streams"]["hls"]:
|
||||||
streams = hlsparse(streamj["streams"]["hls"])
|
streams = hlsparse(streamj["streams"]["hls"])
|
||||||
|
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)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user