Fix aggiunta alla videoteca per le serie TV

This commit is contained in:
Alhaziel
2019-07-23 20:59:59 +02:00
parent e330a6e1ae
commit aeda561e1b
+2 -3
View File
@@ -631,7 +631,7 @@ def videolibrary(itemlist, item, typography='', function_level=1):
# Function_level is useful if the function is called by another function. # Function_level is useful if the function is called by another function.
# If the call is direct, leave it blank # If the call is direct, leave it blank
if item.contentType != 'episode': if item.contentType == 'movie':
action = 'add_pelicula_to_library' action = 'add_pelicula_to_library'
extra = 'findvideos' extra = 'findvideos'
contentType = 'movie' contentType = 'movie'
@@ -643,8 +643,7 @@ def videolibrary(itemlist, item, typography='', function_level=1):
if not typography: typography = 'color kod bold' if not typography: typography = 'color kod bold'
title = typo(config.get_localized_string(30161) + ' ' + typography) title = typo(config.get_localized_string(30161) + ' ' + typography)
if (inspect.stack()[function_level][3] == 'findvideos' and contentType == 'movie') or (inspect.stack()[function_level][3] != 'findvideos' and contentType != 'movie'):
if inspect.stack()[function_level][3] == 'findvideos' and contentType == 'movie' or inspect.stack()[function_level][3] != 'findvideos' and contentType != 'movie':
if config.get_videolibrary_support() and len(itemlist) > 0: if config.get_videolibrary_support() and len(itemlist) > 0:
itemlist.append( itemlist.append(
Item(channel=item.channel, Item(channel=item.channel,