From ec509ff184b7fe578d9604972af23b1d2be1ad32 Mon Sep 17 00:00:00 2001 From: Alhaziel Date: Mon, 18 Mar 2019 12:29:04 +0100 Subject: [PATCH] Fix for News wit auto lang filter --- plugin.video.alfa/channels/news.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugin.video.alfa/channels/news.py b/plugin.video.alfa/channels/news.py index 0a7417c8..d43dc697 100644 --- a/plugin.video.alfa/channels/news.py +++ b/plugin.video.alfa/channels/news.py @@ -9,7 +9,7 @@ import re import time from threading import Thread -from channelselector import get_thumb +from channelselector import get_thumb, auto_filter from core import channeltools from core import scrapertools from core.item import Item @@ -135,6 +135,8 @@ def get_channels_list(): # Rellenar listas de canales disponibles channels_path = os.path.join(config.get_runtime_path(), "channels", '*.json') channel_language = config.get_setting("channel_language", default="all") + if channel_language =="auto": + channel_language = auto_filter() for infile in sorted(glob.glob(channels_path)): channel_id = os.path.basename(infile)[:-5]