From 788343ed6b330e6d8d7f649255c502d3070fb1cb Mon Sep 17 00:00:00 2001 From: Alhaziel Date: Wed, 29 May 2019 16:13:52 +0200 Subject: [PATCH] Added Channel config Def --- core/support.py | 13 +++++++++++++ specials/autorenumber.py | 4 +--- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/core/support.py b/core/support.py index 3aa022a2..cfa6f33a 100644 --- a/core/support.py +++ b/core/support.py @@ -589,3 +589,16 @@ def log(stringa1="", stringa2="", stringa3="", stringa4="", stringa5=""): filename = frame[0].f_code.co_filename filename = os.path.basename(filename) logger.info("[" + filename + "] - [" + inspect.stack()[1][3] + "] " + str(stringa1) + str(stringa2) + str(stringa3) + str(stringa4) + str(stringa5)) + + +def channel_config(item, itemlist): + from channelselector import get_thumb + itemlist.append( + Item(channel='setting', + action="channel_config", + title=typo("Configurazione Canale color kod bold"), + config=item.channel, + folder=False, + thumbnail=get_thumb('setting_0.png')) + ) + diff --git a/specials/autorenumber.py b/specials/autorenumber.py index 43ec65ef..35b00022 100644 --- a/specials/autorenumber.py +++ b/specials/autorenumber.py @@ -106,9 +106,8 @@ def write_data(channel, show, data): -def renumber(itemlist, item='', typography=''): +def renumber(itemlist, item='', typography=''): log() - if item: try: dict_series = jsontools.get_node_from_file(item.channel, TAG_TVSHOW_RENUMERATE) @@ -128,7 +127,6 @@ def renumber(itemlist, item='', typography=''): data = tvdb.otvdb_global.get_list_episodes(ID,page) if data: for episodes in data['data']: - log(episodes.infoLabels) if episodes['airedSeason'] >= S: if E == 0: epList.append([0, SP])