1
0
mirror of https://github.com/spaam/svtplay-dl.git synced 2024-11-24 04:05:39 +01:00

viaplay: f4m can be in the middle of the filename

This commit is contained in:
Johan Andersson 2015-09-10 21:38:29 +02:00
parent 1057f800b0
commit f7323a0072

View File

@ -90,7 +90,7 @@ class Viaplay(Service, OpenGraphThumbMixin):
if streamj["streams"]["medium"]:
filename = streamj["streams"]["medium"]
if filename.endswith("f4m"):
if ".f4m" in filename:
streams = hdsparse(copy.copy(options), self.http.request("get", filename, params={"hdcore": "3.7.0"}).text, filename)
if streams:
for n in list(streams.keys()):