mirror of
https://github.com/spaam/svtplay-dl.git
synced 2024-11-27 21:54:17 +01:00
tv4play: better way to find “?”
This commit is contained in:
parent
06467d5bab
commit
167175e224
@ -93,9 +93,11 @@ class Tv4play(Service, OpenGraphThumbMixin):
|
||||
options.other = "-W %s -y %s" % (swf, i.find("url").text)
|
||||
yield RTMP(copy.copy(options), i.find("base").text, i.find("bitrate").text)
|
||||
elif parse.path[len(parse.path)-3:len(parse.path)] == "f4m":
|
||||
query = ""
|
||||
if i.find("url").text[-1] != "?":
|
||||
pos = i.find("url").text.find("?")
|
||||
if pos < 0:
|
||||
query = "?"
|
||||
else:
|
||||
query = "&"
|
||||
manifest = "%s%shdcore=2.8.0&g=hejsan" % (i.find("url").text, query)
|
||||
streams = hdsparse(copy.copy(options), manifest)
|
||||
if streams:
|
||||
|
Loading…
Reference in New Issue
Block a user