From 56905b13b1729fdf510c152693c92955ab2b439e Mon Sep 17 00:00:00 2001 From: Kingbox <37674310+lopezvg@users.noreply.github.com> Date: Wed, 11 Jul 2018 17:50:56 +0200 Subject: [PATCH] Videolibrarytools: error de marcado --- plugin.video.alfa/core/videolibrarytools.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/plugin.video.alfa/core/videolibrarytools.py b/plugin.video.alfa/core/videolibrarytools.py index e165e439..aff99dd1 100644 --- a/plugin.video.alfa/core/videolibrarytools.py +++ b/plugin.video.alfa/core/videolibrarytools.py @@ -294,10 +294,16 @@ def save_tvshow(item, episodelist): if episodelist and "list_language" in episodelist[0]: # si ya hemos añadido un canal previamente con filtro, añadimos o actualizamos el canal y show if "library_filter_show" in item_tvshow: - item_tvshow.library_filter_show[item.channel] = item.show + if item.title_from_channel: + item_tvshow.library_filter_show[item.channel] = item.title_from_channel + else: + item_tvshow.library_filter_show[item.channel] = item.show # no habia ningún canal con filtro y lo generamos por primera vez else: - item_tvshow.library_filter_show = {item.channel: item.show} + if item.title_from_channel: + item_tvshow.library_filter_show = {item.channel: item.title_from_channel} + else: + item_tvshow.library_filter_show = {item.channel: item.show} if item.channel != "downloads": item_tvshow.active = 1 # para que se actualice a diario cuando se llame a videolibrary_service