mirror of
https://github.com/robweber/xbmcbackup.git
synced 2024-11-14 12:25:48 +01:00
Enhanced self.APP_KEY and self.APP_SECRET grabbing. (#233)
* added function getSettingStringStripped to utils and implemented in authorizers.py dropbox flow line 47 * added function getSettingStringStripped to utils and implemented in authorizers.py dropbox flow line 47
This commit is contained in:
parent
ca10bf7307
commit
a32e6f2656
@ -44,8 +44,8 @@ class DropboxAuthorizer:
|
|||||||
APP_SECRET = ""
|
APP_SECRET = ""
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
self.APP_KEY = utils.getSetting('dropbox_key')
|
self.APP_KEY = utils.getSettingStringStripped('dropbox_key')
|
||||||
self.APP_SECRET = utils.getSetting('dropbox_secret')
|
self.APP_SECRET = utils.getSettingStringStripped('dropbox_secret')
|
||||||
|
|
||||||
def setup(self):
|
def setup(self):
|
||||||
result = True
|
result = True
|
||||||
|
@ -30,6 +30,8 @@ def showNotification(message):
|
|||||||
def getSetting(name):
|
def getSetting(name):
|
||||||
return __Addon.getSetting(name)
|
return __Addon.getSetting(name)
|
||||||
|
|
||||||
|
def getSettingStringStripped(name):
|
||||||
|
return __Addon.getSettingString(name).strip()
|
||||||
|
|
||||||
def getSettingBool(name):
|
def getSettingBool(name):
|
||||||
return bool(__Addon.getSettingBool(name))
|
return bool(__Addon.getSettingBool(name))
|
||||||
|
Loading…
Reference in New Issue
Block a user