From b86d39ae659829c614ebad239bc5a9ff64173673 Mon Sep 17 00:00:00 2001 From: j2331223 Date: Sun, 6 Aug 2017 13:10:28 +0200 Subject: [PATCH] Rename "is_active" method to "is_enabled" --- plugin.video.alfa/core/channeltools.py | 2 +- plugin.video.alfa/videolibrary_service.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/plugin.video.alfa/core/channeltools.py b/plugin.video.alfa/core/channeltools.py index 2c78040b..e2c70a8f 100755 --- a/plugin.video.alfa/core/channeltools.py +++ b/plugin.video.alfa/core/channeltools.py @@ -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) diff --git a/plugin.video.alfa/videolibrary_service.py b/plugin.video.alfa/videolibrary_service.py index 8c3c457a..dcb57459 100644 --- a/plugin.video.alfa/videolibrary_service.py +++ b/plugin.video.alfa/videolibrary_service.py @@ -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,