mirror of
https://github.com/spaam/svtplay-dl.git
synced 2024-11-27 21:54:17 +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 = {}
|
streams = {}
|
||||||
|
|
||||||
if not res:
|
if not res:
|
||||||
return None
|
return streams
|
||||||
|
|
||||||
if res.status_code > 400:
|
if res.status_code > 400:
|
||||||
streams[0] = ServiceError("Can't read HLS playlist. {0}".format(res.status_code))
|
streams[0] = ServiceError("Can't read HLS playlist. {0}".format(res.status_code))
|
||||||
|
Loading…
Reference in New Issue
Block a user