migliorie codice

This commit is contained in:
marco
2020-03-13 17:27:56 +01:00
parent ca4b07193e
commit 9258f8fbea
2 changed files with 4 additions and 5 deletions

View File

@@ -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

View File

@@ -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')