From 5c4b5869a659938fe8f0b7d770e9893ba9ffcc0f Mon Sep 17 00:00:00 2001 From: j2331223 Date: Sun, 6 Aug 2017 09:50:12 +0200 Subject: [PATCH] =?UTF-8?q?is=5Factive=20tien=20een=20cuenta=20la=20config?= =?UTF-8?q?uraci=C3=B3n=20del=20canal?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Da preferencia al setting general --- plugin.video.alfa/core/channeltools.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/plugin.video.alfa/core/channeltools.py b/plugin.video.alfa/core/channeltools.py index 0158abdb..2c78040b 100755 --- a/plugin.video.alfa/core/channeltools.py +++ b/plugin.video.alfa/core/channeltools.py @@ -20,8 +20,7 @@ def is_adult(channel_name): def is_active(channel_name): logger.info("channel_name=" + channel_name) - channel_parameters = get_channel_parameters(channel_name) - return channel_parameters["active"] + return get_channel_parameters(channel_name)["active"] and get_channel_setting("enabled", channel = channel_name, default = True) def get_channel_parameters(channel_name): global dict_channels_parameters