mirror of
https://github.com/spaam/svtplay-dl.git
synced 2024-11-27 21:54:17 +01:00
svtplay: they removed playertype from jsonfile.
This commit is contained in:
parent
f7760ee640
commit
49a92b98f8
@ -46,15 +46,15 @@ class Svtplay(Service):
|
|||||||
streams = {}
|
streams = {}
|
||||||
streams2 = {} #hack..
|
streams2 = {} #hack..
|
||||||
for i in data["video"]["videoReferences"]:
|
for i in data["video"]["videoReferences"]:
|
||||||
if options.hls and i["playerType"] == "ios":
|
if options.hls 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
|
||||||
elif not options.hls and i["playerType"] == "flash":
|
elif not options.hls and i["url"][len(i["url"])-3:] == "f4m":
|
||||||
stream = {}
|
stream = {}
|
||||||
stream["url"] = i["url"]
|
stream["url"] = i["url"]
|
||||||
streams[int(i["bitrate"])] = stream
|
streams[int(i["bitrate"])] = stream
|
||||||
if options.hls and i["playerType"] == "flash":
|
if options.hls and i["url"][len(i["url"])-3:] == "f4m":
|
||||||
stream = {}
|
stream = {}
|
||||||
stream["url"] = i["url"]
|
stream["url"] = i["url"]
|
||||||
streams2[int(i["bitrate"])] = stream
|
streams2[int(i["bitrate"])] = stream
|
||||||
|
Loading…
Reference in New Issue
Block a user