mirror of
https://github.com/spaam/svtplay-dl.git
synced 2024-11-24 04:05:39 +01:00
tv4play: fix auto naming for latest version of the site
This commit is contained in:
parent
44623376e6
commit
c5e6be02e6
@ -156,7 +156,12 @@ class Tv4play(Service, OpenGraphThumbMixin):
|
||||
parse = urlparse(self.url)
|
||||
if parse.path.count("/") > 2:
|
||||
match = re.search("^/([^/]+)/", parse.path)
|
||||
show = match.group(1)
|
||||
if "program" == match.group(1):
|
||||
match = re.search("^/program/([^/]+)/", parse.path)
|
||||
if match:
|
||||
show = match.group(1)
|
||||
else:
|
||||
show = match.group(1)
|
||||
else:
|
||||
show = parse.path[parse.path.find("/", 1)+1:]
|
||||
if not re.search("%", show):
|
||||
|
Loading…
Reference in New Issue
Block a user