Fix community per riscrittura render_items
This commit is contained in:
@@ -42,7 +42,7 @@ def show_channels(item):
|
||||
itemlist = []
|
||||
|
||||
# add context menu
|
||||
context = CONTEXT + [{"title": config.get_localized_string(50005), "action": "remove_channel", "channel": "community"}]
|
||||
context = [{"title": config.get_localized_string(50005), "action": "remove_channel", "channel": "community"}]
|
||||
|
||||
# read json
|
||||
json = load_and_check(item)
|
||||
@@ -209,8 +209,7 @@ def peliculas(item, json='', key='', itemlist=[]):
|
||||
fanart = extra.fanart,
|
||||
plot = extra.plot,
|
||||
personal_plot = extra.plot,
|
||||
action = action,
|
||||
context = CONTEXT)
|
||||
action = action)
|
||||
itlist.append(it)
|
||||
|
||||
if not 'generic_list' in key:
|
||||
@@ -249,8 +248,7 @@ def get_seasons(item):
|
||||
contentSeason=option['season'],
|
||||
infoLabels=infoLabels,
|
||||
contentType='season',
|
||||
path=extra.path,
|
||||
context = CONTEXT))
|
||||
path=extra.path))
|
||||
|
||||
if inspect.stack()[2][3] in ['add_tvshow', 'get_episodes', 'update', 'find_episodes', 'get_newest'] or show_seasons == False:
|
||||
itlist = []
|
||||
@@ -325,8 +323,7 @@ def episodios(item, json ='', key='', itemlist =[]):
|
||||
contentEpisode = episode_number,
|
||||
infoLabels = infoLabels,
|
||||
contentType = 'episode',
|
||||
path = item.path,
|
||||
context = CONTEXT))
|
||||
path = item.path))
|
||||
|
||||
# if showseason
|
||||
if inspect.stack()[1][3] not in ['add_tvshow', 'get_episodes', 'update', 'find_episodes', 'get_newest', 'search']:
|
||||
@@ -348,8 +345,7 @@ def episodios(item, json ='', key='', itemlist =[]):
|
||||
contentSeason=season,
|
||||
infoLabels=infoLabels,
|
||||
filterseason=str(season),
|
||||
path=item.path,
|
||||
context = CONTEXT))
|
||||
path=item.path))
|
||||
|
||||
elif defpage and inspect.stack()[1][3] not in ['get_seasons']:
|
||||
if Pagination and len(itemlist) >= Pagination:
|
||||
@@ -401,8 +397,7 @@ def get_menu(item, json, key, itemlist=[]):
|
||||
action = 'show_menu',
|
||||
menu = level2 if not item.menu else None,
|
||||
filterkey = extra.filterkey,
|
||||
filter = extra.filter,
|
||||
context = CONTEXT)
|
||||
filter = extra.filter)
|
||||
if title:
|
||||
itemlist.append(it)
|
||||
|
||||
@@ -444,7 +439,6 @@ def get_sub_menu(item, json, key, itemlist=[]):
|
||||
action = 'show_menu',
|
||||
menu = level2 if not item.menu else None,
|
||||
filterkey = filterkey,
|
||||
context = CONTEXT,
|
||||
description = extra.description)
|
||||
itemlist.append(it)
|
||||
|
||||
@@ -479,8 +473,7 @@ def get_search_menu(item, json='', itemlist=[], channel_name=''):
|
||||
url=item.url,
|
||||
custom_search=extra.url if extra.url != item.url else '',
|
||||
path=item.path,
|
||||
global_search=True if channel_name else False,
|
||||
context = CONTEXT))
|
||||
global_search=True if channel_name else False))
|
||||
|
||||
return itemlist
|
||||
|
||||
@@ -578,8 +571,7 @@ def filter_thread(filter, key, item, description):
|
||||
path=item.path,
|
||||
filterkey=item.filterkey,
|
||||
filter=filter,
|
||||
key=key,
|
||||
context = CONTEXT)
|
||||
key=key)
|
||||
return item
|
||||
|
||||
|
||||
@@ -743,8 +735,7 @@ def pagination(item, itemlist = []):
|
||||
path=item.path,
|
||||
media_type=item.media_type,
|
||||
thumbnail=support.thumb(),
|
||||
itemlist= encoded_itemlist,
|
||||
context = CONTEXT))
|
||||
itemlist= encoded_itemlist))
|
||||
return itlist
|
||||
|
||||
def add_channel(item):
|
||||
|
||||
Reference in New Issue
Block a user