From 660782b418a4839e5d0ed0f95159512b1306fc1a Mon Sep 17 00:00:00 2001 From: Alhaziel01 Date: Thu, 18 Jun 2020 18:52:56 +0200 Subject: [PATCH] Fix Community Channel --- specials/community.py | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/specials/community.py b/specials/community.py index ff553beb..c2d9e97c 100644 --- a/specials/community.py +++ b/specials/community.py @@ -97,8 +97,11 @@ def show_menu(item): get_menu(item, json, key, itemlist) if item.filterkey and not item.filter: itemlist += submenu(item, json, key) - elif key in ['movies_list','tvshows_list', 'generic_list']: + elif key in ['movies_list', 'tvshows_list', 'generic_list']: itemlist += peliculas(item, json, key) + elif key in ['seasons_list']: + item.url = json + itemlist += get_seasons(item) elif key in ['episodes_list']: itemlist += episodios(item, json, key) elif key in ['links']: @@ -171,7 +174,7 @@ def peliculas(item, json='', key='', itemlist=[]): infoLabels = item.infoLabels if item.infoLabels else {} contentType = 'tvshow' if 'tvshow' in key else 'movie' itlist = filterkey = [] - action = 'findvideos' + action = 'show_menu' if inspect.stack()[1][3] not in ['add_tvshow', 'get_episodes', 'update', 'find_episodes', 'search'] and not item.filterkey and not item.disable_pagination: Pagination = int(defp) if defp.isdigit() else '' @@ -189,8 +192,8 @@ def peliculas(item, json='', key='', itemlist=[]): title = option['title'] if 'title' in option else '' - if 'tvshows_list' in key and 'links' not in option: - action = 'episodios' + # if 'tvshows_list' in key and 'links' not in option: + # action = 'episodios' # filter elements if (not item.filter or item.filter.lower() in filterkey) and item.search.lower() in title.lower() and title: @@ -234,7 +237,6 @@ def get_seasons(item): itemlist = [] infoLabels = item.infoLabels json = item.url['seasons_list'] if type(item.url) == dict else item.url - for option in json: infoLabels['season'] = option['season'] title = config.get_localized_string(60027) % option['season']