mirror of
https://github.com/spaam/svtplay-dl.git
synced 2024-11-24 04:05:39 +01:00
viaplay: don’t try to yield empty streams
This commit is contained in:
parent
2a941a6cce
commit
723b7df1c8
@ -111,8 +111,9 @@ class Viaplay(Service, OpenGraphThumbMixin):
|
||||
|
||||
if streamj["streams"]["hls"]:
|
||||
streams = hlsparse(streamj["streams"]["hls"])
|
||||
for n in list(streams.keys()):
|
||||
yield HLS(copy.copy(options), streams[n], n)
|
||||
if streams:
|
||||
for n in list(streams.keys()):
|
||||
yield HLS(copy.copy(options), streams[n], n)
|
||||
|
||||
def find_all_episodes(self, options):
|
||||
format_id = re.search(r'data-format-id="(\d+)"', self.get_urldata()[1])
|
||||
|
Loading…
Reference in New Issue
Block a user