Added Channel config Def
This commit is contained in:
@@ -589,3 +589,16 @@ def log(stringa1="", stringa2="", stringa3="", stringa4="", stringa5=""):
|
|||||||
filename = frame[0].f_code.co_filename
|
filename = frame[0].f_code.co_filename
|
||||||
filename = os.path.basename(filename)
|
filename = os.path.basename(filename)
|
||||||
logger.info("[" + filename + "] - [" + inspect.stack()[1][3] + "] " + str(stringa1) + str(stringa2) + str(stringa3) + str(stringa4) + str(stringa5))
|
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'))
|
||||||
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -106,9 +106,8 @@ def write_data(channel, show, data):
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
def renumber(itemlist, item='', typography=''):
|
def renumber(itemlist, item='', typography=''):
|
||||||
log()
|
log()
|
||||||
|
|
||||||
if item:
|
if item:
|
||||||
try:
|
try:
|
||||||
dict_series = jsontools.get_node_from_file(item.channel, TAG_TVSHOW_RENUMERATE)
|
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)
|
data = tvdb.otvdb_global.get_list_episodes(ID,page)
|
||||||
if data:
|
if data:
|
||||||
for episodes in data['data']:
|
for episodes in data['data']:
|
||||||
log(episodes.infoLabels)
|
|
||||||
if episodes['airedSeason'] >= S:
|
if episodes['airedSeason'] >= S:
|
||||||
if E == 0:
|
if E == 0:
|
||||||
epList.append([0, SP])
|
epList.append([0, SP])
|
||||||
|
|||||||
Reference in New Issue
Block a user