mirror of
https://github.com/spaam/svtplay-dl.git
synced 2024-11-24 04:05:39 +01:00
download_hls: Don't assume baseurl is set
This commit is contained in:
parent
0a6bbfba87
commit
fa498cf4ea
@ -401,7 +401,7 @@ def download_hls(options, url, baseurl=None):
|
|||||||
streams[int(i[1]["BANDWIDTH"])] = i[0]
|
streams[int(i[1]["BANDWIDTH"])] = i[0]
|
||||||
|
|
||||||
test = select_quality(options, streams)
|
test = select_quality(options, streams)
|
||||||
if test[1:4] != "http":
|
if baseurl and test[1:4] != "http":
|
||||||
test = "%s%s" % (baseurl, test)
|
test = "%s%s" % (baseurl, test)
|
||||||
m3u8 = get_http_data(test)
|
m3u8 = get_http_data(test)
|
||||||
globaldata, files = parsem3u(m3u8)
|
globaldata, files = parsem3u(m3u8)
|
||||||
|
Loading…
Reference in New Issue
Block a user