From f0633b8ed094dfc5d0b275de61c46a683d832776 Mon Sep 17 00:00:00 2001 From: Alhaziel Date: Wed, 5 Jun 2019 20:04:44 +0200 Subject: [PATCH] Revert commit by @mac12m99 --- core/support.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/core/support.py b/core/support.py index 6d85fa03..72cbef53 100644 --- a/core/support.py +++ b/core/support.py @@ -576,6 +576,12 @@ def controls(itemlist, item, AutoPlay=True, CheckLinks=True): from platformcode.config import get_setting CL = get_setting('checklinks') or get_setting('checklinks', item.channel) + autoplay_node = jsontools.get_node_from_file('autoplay', 'AUTOPLAY') + channel_node = autoplay_node.get(item.channel, {}) + if not channel_node: # non ha mai aperto il menu del canale quindi in autoplay_data.json non c'e la key + channelFile = __import__('channels.' + item.channel, fromlist=["channels.%s" % item.channel]) + autoplay.init(item.channel, channelFile.list_servers, channelFile.list_quality) + autoplay_node = jsontools.get_node_from_file('autoplay', 'AUTOPLAY') channel_node = autoplay_node.get(item.channel, {}) settings_node = channel_node.get('settings', {})