1
0
mirror of https://github.com/spaam/svtplay-dl.git synced 2024-11-27 21:54:17 +01:00

hls: use bandwidth instead of resolution now.

This commit is contained in:
Johan Andersson 2014-04-27 10:41:20 +02:00
parent 83b120ef9a
commit 8ef2e2454a

View File

@ -47,7 +47,8 @@ def hlsparse(url):
streams = {}
for i in files:
streams[i[1]["RESOLUTION"].split("x")[1]] = i[0]
bitrate = float(i[1]["BANDWIDTH"])/1024
streams[int(bitrate)] = i[0]
return streams
class HLS(VideoRetriever):