diff --git a/plugin.video.alfa/channels/hdfull.py b/plugin.video.alfa/channels/hdfull.py index 78c605b5..10982992 100644 --- a/plugin.video.alfa/channels/hdfull.py +++ b/plugin.video.alfa/channels/hdfull.py @@ -349,11 +349,16 @@ def fichas(item): bus = host[-4:] tag_type = scrapertools.find_single_match(url, '%s/([^/]+)/' %bus) title += " - [COLOR blue]" + tag_type.capitalize() + "[/COLOR]" - - itemlist.append( - Item(channel=item.channel, action=action, title=title, url=url, fulltitle=title, thumbnail=thumbnail, - show=show, folder=True, contentType=contentType, contentTitle=contentTitle, - language =language, infoLabels=infoLabels)) + if "/serie" in url or "/tags-tv" in url: + itemlist.append( + Item(channel=item.channel, action=action, title=title, url=url, thumbnail=thumbnail, + contentSerieName=show, folder=True, contentType=contentType, + language =language, infoLabels=infoLabels)) + else: + itemlist.append( + Item(channel=item.channel, action=action, title=title, url=url, fulltitle=title, thumbnail=thumbnail, + folder=True, contentType=contentType, contentTitle=contentTitle, + language =language, infoLabels=infoLabels)) ## Paginación next_page_url = scrapertools.find_single_match(data, '.raquo;') if next_page_url != "": @@ -389,50 +394,41 @@ def episodios(item): str = get_status(status, "shows", id) if str != "" and account and item.category != "Series" and "XBMC" not in item.title: if config.get_videolibrary_support(): - title = " ( [COLOR gray][B]" + item.show + "[/B][/COLOR] )" + title = " ( [COLOR gray][B]" + item.contentSerieName + "[/B][/COLOR] )" itemlist.append( - Item(channel=item.channel, action="episodios", title=title, fulltitle=title, url=url_targets, - thumbnail=item.thumbnail, show=item.show, folder=False)) + Item(channel=item.channel, action="episodios", title=title, url=url_targets, + thumbnail=item.thumbnail, contentSerieName=item.contentSerieName, folder=False)) title = str.replace('green', 'red').replace('Siguiendo', 'Abandonar') - itemlist.append(Item(channel=item.channel, action="set_status", title=title, fulltitle=title, url=url_targets, - thumbnail=item.thumbnail, show=item.show, folder=True)) + itemlist.append(Item(channel=item.channel, action="set_status", title=title, url=url_targets, + thumbnail=item.thumbnail, contentSerieName=item.contentSerieName, folder=True)) elif account and item.category != "Series" and "XBMC" not in item.title: if config.get_videolibrary_support(): title = " ( [COLOR gray][B]" + item.show + "[/B][/COLOR] )" itemlist.append( - Item(channel=item.channel, action="episodios", title=title, fulltitle=title, url=url_targets, - thumbnail=item.thumbnail, show=item.show, folder=False)) + Item(channel=item.channel, action="episodios", title=title, url=url_targets, + thumbnail=item.thumbnail, contentSerieName=item.contentSerieName, folder=False)) title = " ( [COLOR orange][B]Seguir[/B][/COLOR] )" - itemlist.append(Item(channel=item.channel, action="set_status", title=title, fulltitle=title, url=url_targets, - thumbnail=item.thumbnail, show=item.show, folder=True)) - + itemlist.append(Item(channel=item.channel, action="set_status", title=title, url=url_targets, + thumbnail=item.thumbnail, contentSerieName=item.contentSerieName, folder=True)) patron = "