1
0
mirror of https://github.com/spaam/svtplay-dl.git synced 2024-11-27 21:54:17 +01:00

svtplay: it should be parse.path to detect klipp

This commit is contained in:
Johan Andersson 2016-03-22 22:26:15 +01:00
parent b9c8851ab1
commit cad24eebd4

View File

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