From cad24eebd48b70f8b9672ded9127d526b85f5f1f Mon Sep 17 00:00:00 2001 From: Johan Andersson Date: Tue, 22 Mar 2016 22:26:15 +0100 Subject: [PATCH] svtplay: it should be parse.path to detect klipp --- lib/svtplay_dl/service/svtplay.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/svtplay_dl/service/svtplay.py b/lib/svtplay_dl/service/svtplay.py index 661ea03..b97e2dc 100644 --- a/lib/svtplay_dl/service/svtplay.py +++ b/lib/svtplay_dl/service/svtplay.py @@ -25,7 +25,7 @@ class Svtplay(Service, OpenGraphThumbMixin): parse = urlparse(self.url) if parse.netloc == "www.svtplay.se" or parse.netloc == "svtplay.se": - if parse.path[:6] != "/video" and parse[:6] != "/klipp": + if parse.path[:6] != "/video" and parse.path[:6] != "/klipp": yield ServiceError("This mode is not supported anymore. need the url with the video") return