From fa498cf4eaecc720b83d386e02d97bd820f38df4 Mon Sep 17 00:00:00 2001 From: Olof Johansson Date: Fri, 15 Feb 2013 19:58:23 +0100 Subject: [PATCH] download_hls: Don't assume baseurl is set --- svtplay_dl.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/svtplay_dl.py b/svtplay_dl.py index b7a1430..b053927 100755 --- a/svtplay_dl.py +++ b/svtplay_dl.py @@ -401,7 +401,7 @@ def download_hls(options, url, baseurl=None): streams[int(i[1]["BANDWIDTH"])] = i[0] test = select_quality(options, streams) - if test[1:4] != "http": + if baseurl and test[1:4] != "http": test = "%s%s" % (baseurl, test) m3u8 = get_http_data(test) globaldata, files = parsem3u(m3u8)