1
0
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:
Johan Andersson 2018-06-03 15:20:46 +02:00
parent fa3b16bfcd
commit fbffce1c12

View File

@ -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))