1
0
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:
Johan Andersson 2017-09-12 12:33:49 +02:00
parent 44623376e6
commit c5e6be02e6

View File

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