Corrección vidoza y platformtools

This commit is contained in:
pipcat
2018-07-20 21:48:32 +02:00
parent aa72291d2b
commit 27f0375e4e
2 changed files with 22 additions and 19 deletions

View File

@@ -127,13 +127,12 @@ def render_items(itemlist, parent_item):
if 'anime' in channeltools.get_channel_parameters(parent_item.channel)['categories']:
anime = True
# Recorremos el itemlist
unify_enabled = config.get_setting('unify')
#logger.debug('unify_enabled: %s' % unify_enabled)
# Recorremos el itemlist
for item in itemlist:
try:
channel_parameters = channeltools.get_channel_parameters(item.channel)
except:
pass
#logger.debug(item)
# Si el item no contiene categoria, le ponemos la del item padre
if item.category == "":
@@ -143,9 +142,7 @@ def render_items(itemlist, parent_item):
if item.fanart == "":
item.fanart = parent_item.fanart
if genre:
valid_genre = True
thumb = get_thumb(item.title, auto=True)
if thumb != '':
@@ -155,12 +152,7 @@ def render_items(itemlist, parent_item):
valid_genre = True
unify_enabled = config.get_setting('unify')
#logger.debug('unify_enabled: %s' % unify_enabled)
if unify_enabled and not channel_parameters['adult'] and 'skip_unify' not in channel_parameters:
if unify_enabled:
# Formatear titulo con unify
item = unify.title_format(item)
else: