mirror of
https://github.com/spaam/svtplay-dl.git
synced 2024-11-23 19:55:38 +01:00
hlsparse: return dict instead of nothing
This commit is contained in:
parent
fa3b16bfcd
commit
fbffce1c12
@ -46,7 +46,7 @@ def hlsparse(config, res, url, **kwargs):
|
||||
streams = {}
|
||||
|
||||
if not res:
|
||||
return None
|
||||
return streams
|
||||
|
||||
if res.status_code > 400:
|
||||
streams[0] = ServiceError("Can't read HLS playlist. {0}".format(res.status_code))
|
||||
|
Loading…
Reference in New Issue
Block a user