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:
parent
83b120ef9a
commit
8ef2e2454a
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user