mirror of
https://github.com/robweber/xbmcbackup.git
synced 2024-11-14 20:35:48 +01:00
update get_params to remove urlparse
This commit is contained in:
parent
b38aff2a8e
commit
9f570233d9
10
launcher.py
10
launcher.py
@ -1,5 +1,4 @@
|
||||
import sys
|
||||
from future.moves.urllib.request import urlparse
|
||||
from kodi_six import xbmc, xbmcgui, xbmcvfs
|
||||
import resources.lib.utils as utils
|
||||
from resources.lib.authorizers import DropboxAuthorizer,GoogleDriveAuthorizer
|
||||
@ -41,11 +40,14 @@ def get_params():
|
||||
try:
|
||||
for i in sys.argv:
|
||||
args = i
|
||||
if(args.startswith('?')):
|
||||
args = args[1:]
|
||||
param.update(dict(urlparse.parse_qsl(args)))
|
||||
if('=' in args):
|
||||
if(args.startswith('?')):
|
||||
args = args[1:] #legacy in case of url params
|
||||
splitString = args.split('=')
|
||||
param[splitString[0]] = splitString[1]
|
||||
except:
|
||||
pass
|
||||
|
||||
return param
|
||||
|
||||
params = get_params()
|
||||
|
Loading…
Reference in New Issue
Block a user