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:
parent
78dd84112b
commit
971c44117b
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user