From 8ef2e2454a911260a6ff737d19645726a4f252de Mon Sep 17 00:00:00 2001 From: Johan Andersson Date: Sun, 27 Apr 2014 10:41:20 +0200 Subject: [PATCH] hls: use bandwidth instead of resolution now. --- lib/svtplay_dl/fetcher/hls.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/svtplay_dl/fetcher/hls.py b/lib/svtplay_dl/fetcher/hls.py index fb50070..62186f0 100644 --- a/lib/svtplay_dl/fetcher/hls.py +++ b/lib/svtplay_dl/fetcher/hls.py @@ -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):