From 4a06f77803dfb6958694f9646a4bc64cb838ace3 Mon Sep 17 00:00:00 2001 From: Alhaziel01 Date: Thu, 26 Mar 2020 12:27:44 +0100 Subject: [PATCH] Fix divisione per stagioni Community Channels --- specials/community.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/specials/community.py b/specials/community.py index c9fa08a2..c318d49e 100644 --- a/specials/community.py +++ b/specials/community.py @@ -283,7 +283,7 @@ def episodios(item, json ='', key='', itemlist =[]): ep = 1 season = infoLabels['season'] if 'season' in infoLabels else item.contentSeason if item.contentSeason else 1 - if inspect.stack()[1][3] not in ['add_tvshow', 'get_episodes', 'update', 'find_episodes', 'search']: + if inspect.stack()[1][3] not in ['add_tvshow', 'get_episodes', 'update', 'find_episodes', 'search'] and not show_seasons: Pagination = int(defp) if defp.isdigit() else '' else: Pagination = '' pag = item.page if item.page else 1 @@ -314,7 +314,7 @@ def episodios(item, json ='', key='', itemlist =[]): title = ' - ' + option['title'] if 'title' in option else '' title = '%sx%s%s' % (season_number, episode_number, title) extra = set_extra_values(item, option, item.path) - if season_number == item.filterseason or not item.filterseason: + if season_number == int(item.filterseason) or not item.filterseason: itemlist.append(Item(channel = item.channel, title = set_title(title, extra.language, extra.quality), fulltitle = item.fulltitle,