Add parent item title, to add to videolibray item.
Italiaserie fix
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user