From 6e5a1af449428a7ac99ae24e2ff972a014fc6976 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mikael=20Wikstr=C3=B6m?= Date: Fri, 18 Jan 2013 10:31:13 +0100 Subject: [PATCH] svtplay: don't crach when using --hls --- svtplay_dl.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/svtplay_dl.py b/svtplay_dl.py index ba098b9..417a9e5 100755 --- a/svtplay_dl.py +++ b/svtplay_dl.py @@ -987,7 +987,7 @@ class Svtplay(): streams2[int(i["bitrate"])] = stream if len(streams) == 0 and options.hls: - test = streams2[list(streams.keys())[0]] + test = streams2[0] test["url"] = test["url"].replace("/z/", "/i/").replace("manifest.f4m", "master.m3u8") elif len(streams) == 0: log.error("Can't find any streams.")