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