mirror of
https://github.com/spaam/svtplay-dl.git
synced 2024-11-24 04:05:39 +01:00
svtplay: it should be elif and not if
This commit is contained in:
parent
153615e918
commit
e35e3c6932
@ -57,12 +57,12 @@ class Svtplay(Service, OpenGraphThumbMixin):
|
||||
|
||||
if parse.path.find("m3u8") > 0:
|
||||
yield HLS(options, i["url"], i["bitrate"])
|
||||
if parse.path.find("f4m") > 0:
|
||||
elif parse.path.find("f4m") > 0:
|
||||
match = re.search(r"\/se\/secure\/", i["url"])
|
||||
if not match:
|
||||
manifest = "%s?hdcore=2.8.0&g=hejsan" % i["url"]
|
||||
yield HDS(options, manifest, i["bitrate"])
|
||||
if parse.scheme == "rtmp":
|
||||
elif parse.scheme == "rtmp":
|
||||
embedurl = "%s?type=embed" % url
|
||||
data = get_http_data(embedurl)
|
||||
match = re.search(r"value=\"(/(public)?(statiskt)?/swf(/video)?/svtplayer-[0-9\.a-f]+swf)\"", data)
|
||||
|
Loading…
Reference in New Issue
Block a user