mirror of
https://github.com/spaam/svtplay-dl.git
synced 2024-11-24 04:05:39 +01:00
picsearch: don’t try to parse rtmp with hds
This commit is contained in:
parent
cecbcda162
commit
d341782100
@ -43,9 +43,11 @@ class Picsearch(Service, OpenGraphThumbMixin):
|
||||
options.other = "-y '%s'" % i["url"]
|
||||
yield RTMP(copy.copy(options), server, i["height"])
|
||||
if "provider" in playlist:
|
||||
options.live = playlist["live"]
|
||||
if playlist["url"].endswith(".f4m"):
|
||||
streams = hdsparse(copy.copy(options), playlist["url"])
|
||||
if streams:
|
||||
for n in list(streams.keys()):
|
||||
yield streams[n]
|
||||
if playlist["provider"] != "rtmp":
|
||||
if "live" in playlist:
|
||||
options.live = playlist["live"]
|
||||
if playlist["url"].endswith(".f4m"):
|
||||
streams = hdsparse(copy.copy(options), playlist["url"])
|
||||
if streams:
|
||||
for n in list(streams.keys()):
|
||||
yield streams[n]
|
||||
|
Loading…
Reference in New Issue
Block a user