fix login su HDmario

This commit is contained in:
marco
2020-07-31 18:17:24 +02:00
parent 8a2ad04880
commit 4d061f6645
3 changed files with 3 additions and 5 deletions

View File

@@ -171,7 +171,7 @@ class SettingsWindow(xbmcgui.WindowXMLDialog):
if not self.list_controls:
# If the channel path is in the "channels" folder, we get the controls and values using chaneltools
if os.path.join(config.get_runtime_path(), "channels") or os.path.join(config.get_runtime_path(), "specials") in channelpath:
if os.path.join(config.get_runtime_path(), "channels") in channelpath or os.path.join(config.get_runtime_path(), "specials") in channelpath:
# The call is made from a channel
self.list_controls, default_values = channeltools.get_channel_controls_settings(self.channel)

View File

@@ -40,8 +40,8 @@
{
"default": "",
"enabled": true,
"id": "email",
"label": "email",
"id": "username",
"label": "username",
"type": "text",
"visible": true
},

View File

@@ -52,8 +52,6 @@ def registerOrLogin(page_url, forced=False):
'password': randPsw,
'password_confirmation': randPsw}).url
if rq:
from core import support
support.dbg()
config.set_setting('username', randEmail, server='hdmario')
config.set_setting('password', randPsw, server='hdmario')
platformtools.dialog_ok('HDmario',