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

Merge pull request #22 from leakim/master

svtplay: fix crach when using --hls
This commit is contained in:
Johan Andersson 2013-01-18 01:42:12 -08:00
commit ecb5620ade

View File

@ -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.")