Rename "is_active" method to "is_enabled"

This commit is contained in:
j2331223
2017-08-06 13:10:28 +02:00
parent 5c4b5869a6
commit b86d39ae65
2 changed files with 3 additions and 3 deletions

View File

@@ -18,7 +18,7 @@ def is_adult(channel_name):
channel_parameters = get_channel_parameters(channel_name)
return channel_parameters["adult"]
def is_active(channel_name):
def is_enabled(channel_name):
logger.info("channel_name=" + channel_name)
return get_channel_parameters(channel_name)["active"] and get_channel_setting("enabled", channel = channel_name, default = True)

View File

@@ -25,9 +25,9 @@ def update(path, p_dialog, i, t, serie, overwrite):
serie.channel = channel
serie.url = url
channel_active = channeltools.is_active(channel)
channel_enabled = channeltools.is_enabled(channel)
if channel_active:
if channel_enabled:
heading = 'Actualizando videoteca....'
p_dialog.update(int(math.ceil((i + 1) * t)), heading, "%s: %s" % (serie.contentSerieName,