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
+4
View File
@@ -18,6 +18,10 @@ def is_adult(channel_name):
channel_parameters = get_channel_parameters(channel_name) channel_parameters = get_channel_parameters(channel_name)
return channel_parameters["adult"] 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): def get_channel_parameters(channel_name):
global dict_channels_parameters global dict_channels_parameters
+2 -1
View File
@@ -11,6 +11,7 @@ import threading
from core import config from core import config
from core import filetools from core import filetools
from core import logger from core import logger
from core import channeltools
from core import videolibrarytools from core import videolibrarytools
from platformcode import platformtools from platformcode import platformtools
@@ -24,7 +25,7 @@ def update(path, p_dialog, i, t, serie, overwrite):
serie.channel = channel serie.channel = channel
serie.url = url serie.url = url
channel_active = config.get_setting("active", channel=channel, default=False) channel_active = channeltools.is_active(channel)
if channel_active: if channel_active: