1
0
mirror of https://github.com/spaam/svtplay-dl.git synced 2024-11-24 04:05:39 +01:00

download_hls: add support for relative urls

This commit is contained in:
Johan Andersson 2013-03-03 11:07:10 +01:00 committed by Olof Johansson
parent 78dd84112b
commit 971c44117b

View File

@ -24,6 +24,8 @@ def download_hls(options, url, baseurl=None):
streams[int(i[1]["BANDWIDTH"])] = i[0]
test = select_quality(options, streams)
if baseurl and test[:4] != 'http':
test = "%s/%s" % (baseurl, test)
m3u8 = get_http_data(test)
globaldata, files = parsem3u(m3u8)
encrypted = False