mirror of
https://github.com/spaam/svtplay-dl.git
synced 2024-11-24 04:05:39 +01:00
svtplay: it should be parse.path to detect klipp
This commit is contained in:
parent
b9c8851ab1
commit
cad24eebd4
@ -25,7 +25,7 @@ class Svtplay(Service, OpenGraphThumbMixin):
|
|||||||
|
|
||||||
parse = urlparse(self.url)
|
parse = urlparse(self.url)
|
||||||
if parse.netloc == "www.svtplay.se" or parse.netloc == "svtplay.se":
|
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")
|
yield ServiceError("This mode is not supported anymore. need the url with the video")
|
||||||
return
|
return
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user