1
0
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:
Johan Andersson 2014-12-17 21:06:08 +01:00
parent cecbcda162
commit d341782100

View File

@ -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]