From 9f570233d9adf91a3cd524471c2946f900d6f3ae Mon Sep 17 00:00:00 2001 From: Rob Weber Date: Wed, 28 Aug 2019 14:50:33 -0500 Subject: [PATCH] update get_params to remove urlparse --- launcher.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/launcher.py b/launcher.py index 5232b51..8588799 100644 --- a/launcher.py +++ b/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()