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:
commit
ecb5620ade
@ -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.")
|
||||
|
Loading…
Reference in New Issue
Block a user