enable personalized url

This commit is contained in:
mac12m99
2019-06-08 12:01:34 +02:00
parent eecf79c6a2
commit 4e498f6674
2 changed files with 11 additions and 4 deletions

View File

@@ -85,9 +85,7 @@ def get_videolibrary_support():
return True
def get_channel_url(name):
if __settings__.getSetting("use_custom_url") == "true":
return get_setting("channel_host", name)
else:
def json():
try:
try:
import json
@@ -104,6 +102,15 @@ def get_channel_url(name):
except:
return get_setting("channel_host", name)
if __settings__.getSetting("use_custom_url") == "true":
host = get_setting("channel_host", name)
if host:
return host
else:
return json()
else:
return json()
def get_system_platform():
""" fonction: pour recuperer la platform que xbmc tourne """
platform = "unknown"