Arreglada la actualización de la videolibrary

This commit is contained in:
j2331223
2017-08-06 01:03:46 +02:00
parent 919bc52d0f
commit c68371bdb5
2 changed files with 6 additions and 1 deletions

View File

@@ -18,6 +18,10 @@ def is_adult(channel_name):
channel_parameters = get_channel_parameters(channel_name)
return channel_parameters["adult"]
def is_active(channel_name):
logger.info("channel_name=" + channel_name)
channel_parameters = get_channel_parameters(channel_name)
return channel_parameters["active"]
def get_channel_parameters(channel_name):
global dict_channels_parameters

View File

@@ -11,6 +11,7 @@ import threading
from core import config
from core import filetools
from core import logger
from core import channeltools
from core import videolibrarytools
from platformcode import platformtools
@@ -24,7 +25,7 @@ def update(path, p_dialog, i, t, serie, overwrite):
serie.channel = channel
serie.url = url
channel_active = config.get_setting("active", channel=channel, default=False)
channel_active = channeltools.is_active(channel)
if channel_active: