diff --git a/authorize_cloud.py b/authorize_cloud.py
index 51ffe9b..d8d5b8f 100644
--- a/authorize_cloud.py
+++ b/authorize_cloud.py
@@ -1,20 +1,34 @@
-import xbmc
+import sys
+import urlparse
import xbmcgui
-import xbmcvfs
import resources.lib.utils as utils
from resources.lib.authorizers import DropboxAuthorizer,GoogleDriveAuthorizer
+def get_params():
+ param = {}
+ try:
+ for i in sys.argv:
+ args = i
+ if(args.startswith('?')):
+ args = args[1:]
+ param.update(dict(urlparse.parse_qsl(args)))
+ except:
+ pass
+ return param
+
+params = get_params()
+
#drobpox
-if(utils.getSetting('remote_selection') == '2'):
+if(params['type'] == 'dropbox'):
authorizer = DropboxAuthorizer()
if(authorizer.authorize()):
- xbmcgui.Dialog().ok("Backup",utils.getString(30027) + ' ' + utils.getString(30106))
+ xbmcgui.Dialog().ok(utils.getString(30010),utils.getString(30027) + ' ' + utils.getString(30106))
else:
- xbmcgui.Dialog().ok("Backup",utils.getString(30107) + ' ' + utils.getString(30027))
+ xbmcgui.Dialog().ok(utils.getString(30010),utils.getString(30107) + ' ' + utils.getString(30027))
#google drive
-elif(utils.getSetting('remote_selection') == '3'):
+elif(params['type'] == 'google_drive'):
authorizer = GoogleDriveAuthorizer()
if(authorizer.authorize()):
diff --git a/resources/settings.xml b/resources/settings.xml
index 5a0682f..69ffe7f 100644
--- a/resources/settings.xml
+++ b/resources/settings.xml
@@ -13,8 +13,9 @@
-
-
+
+
+