diff --git a/channels/piratestreaming.py b/channels/piratestreaming.py index 92aa9418..5ea6909a 100644 --- a/channels/piratestreaming.py +++ b/channels/piratestreaming.py @@ -12,10 +12,6 @@ host = config.get_channel_url() list_servers = ['mixdrop', 'speedvideo', 'gounlimited', 'onlystream', 'youtube'] list_quality = ['default'] - -checklinks = config.get_setting('checklinks', 'piratestreaming') -checklinks_number = config.get_setting('checklinks_number', 'piratestreaming') - headers = [['Referer', host]] @support.menu diff --git a/core/channeltools.py b/core/channeltools.py index 2e9a1ddd..d42cc7ce 100644 --- a/core/channeltools.py +++ b/core/channeltools.py @@ -10,6 +10,7 @@ from platformcode import config, logger DEFAULT_UPDATE_URL = "/channels/" dict_channels_parameters = dict() +default_file = dict() remote_path = 'https://raw.githubusercontent.com/kodiondemand/media/master/' @@ -177,7 +178,9 @@ def get_lang(channel_name): def get_default_settings(channel_name): from core import filetools default_path = filetools.join(config.get_runtime_path(), 'default_channel_settings' + '.json') - default_file = jsontools.load(filetools.read(default_path)) + global default_file + if not default_file: + default_file = jsontools.load(filetools.read(default_path)) channel_path = filetools.join(config.get_runtime_path(), 'channels', channel_name + '.json') adult_path = filetools.join(config.get_runtime_path(), 'channels', 'porn', channel_name + '.json')