From f7323a0072a3177c32f97b49699a8067d9fb6a3e Mon Sep 17 00:00:00 2001 From: Johan Andersson Date: Thu, 10 Sep 2015 21:38:29 +0200 Subject: [PATCH] viaplay: f4m can be in the middle of the filename --- lib/svtplay_dl/service/viaplay.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/svtplay_dl/service/viaplay.py b/lib/svtplay_dl/service/viaplay.py index f3ad275..5363483 100644 --- a/lib/svtplay_dl/service/viaplay.py +++ b/lib/svtplay_dl/service/viaplay.py @@ -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()):