parent
f0e9951482
commit
3a878334b5
1 changed files with 3 additions and 1 deletions
|
@ -16,6 +16,7 @@ from calendar import timegm
|
||||||
from os.path import exists, join
|
from os.path import exists, join
|
||||||
from os import remove, makedirs, walk
|
from os import remove, makedirs, walk
|
||||||
from shutil import rmtree
|
from shutil import rmtree
|
||||||
|
from urllib import quote_plus
|
||||||
|
|
||||||
import xbmc
|
import xbmc
|
||||||
import xbmcaddon
|
import xbmcaddon
|
||||||
|
@ -696,18 +697,19 @@ def passwordsXML():
|
||||||
server = dialog.input("Enter the server name or IP address")
|
server = dialog.input("Enter the server name or IP address")
|
||||||
if not server:
|
if not server:
|
||||||
return
|
return
|
||||||
|
server = quote_plus(server)
|
||||||
|
|
||||||
# Network username
|
# Network username
|
||||||
user = dialog.input("Enter the network username")
|
user = dialog.input("Enter the network username")
|
||||||
if not user:
|
if not user:
|
||||||
return
|
return
|
||||||
|
user = quote_plus(user)
|
||||||
# Network password
|
# Network password
|
||||||
password = dialog.input("Enter the network password",
|
password = dialog.input("Enter the network password",
|
||||||
'', # Default input
|
'', # Default input
|
||||||
xbmcgui.INPUT_ALPHANUM,
|
xbmcgui.INPUT_ALPHANUM,
|
||||||
xbmcgui.ALPHANUM_HIDE_INPUT)
|
xbmcgui.ALPHANUM_HIDE_INPUT)
|
||||||
# Need to url-encode the password
|
# Need to url-encode the password
|
||||||
from urllib import quote_plus
|
|
||||||
password = quote_plus(password)
|
password = quote_plus(password)
|
||||||
# Add elements. Annoying etree bug where findall hangs forever
|
# Add elements. Annoying etree bug where findall hangs forever
|
||||||
if skipFind is False:
|
if skipFind is False:
|
||||||
|
|
Loading…
Reference in a new issue