Add parent item title, to add to videolibray item.

Italiaserie fix
This commit is contained in:
thepasto
2019-04-19 21:13:04 +02:00
parent 7014a36a0f
commit 7f928a4b97
2 changed files with 4 additions and 3 deletions
+2 -2
View File
@@ -136,7 +136,7 @@ def seasons(item):
def episodios(item):
support.log()
season = item.fulltitle
season = item.parentTitle
patron = r'<div class="su-link-ep">\s+<a.*?href="([^"]+)".*?strong>(.*?)</'
if item.args:
@@ -150,7 +150,7 @@ def episodios(item):
for it in itemlist:
if it.action == "findvideos":
season_n = season.lower().replace("stagione", "").strip()
season_n = scrapertools.find_single_match(season, r'Stagione\s+(\d+)')
ep_n = scrapertools.find_single_match(it.title, r'Episodio\s+(\d+)')
it.title = season_n + "x" + str(ep_n).zfill(2) + re.sub(r"Episodio\s+" + ep_n, "", it.title)
+2 -1
View File
@@ -397,7 +397,8 @@ def videolibrary(itemlist, item, typography=''):
url=item.url,
action=action,
extra=extra,
contentTitle=item.fulltitle))
contentTitle=item.fulltitle,
parentTitle=item.title))
def nextPage(itemlist, item, data, patron, function_level=1):