1
0
mirror of https://github.com/spaam/svtplay-dl.git synced 2024-11-27 21:54:17 +01:00

svtplay: correct condition for rtmp-streams

This commit is contained in:
Johan Andersson 2013-10-08 18:36:23 +02:00
parent d3b181f90e
commit 0cec19b780

View File

@ -53,7 +53,7 @@ class Svtplay(Service):
stream = {} stream = {}
stream["url"] = i["url"] stream["url"] = i["url"]
streams[int(i["bitrate"])] = stream streams[int(i["bitrate"])] = stream
elif not options.hls: elif not options.hls and i["url"][len(i["url"])-3:] != "f4m" and i["url"][len(i["url"])-4:] != "m3u8":
stream = {} stream = {}
stream["url"] = i["url"] stream["url"] = i["url"]
streams[int(i["bitrate"])] = stream streams[int(i["bitrate"])] = stream