Fix aggiunta alla videoteca per le serie TV
This commit is contained in:
+4
-5
@@ -631,20 +631,19 @@ 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'
|
||||||
else:
|
else:
|
||||||
action = 'add_serie_to_library'
|
action = 'add_serie_to_library'
|
||||||
extra = 'episodios'
|
extra = 'episodios'
|
||||||
contentType = 'tvshow'
|
contentType = 'tvshow'
|
||||||
|
|
||||||
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,
|
||||||
|
|||||||
Reference in New Issue
Block a user