mirror of
https://github.com/robweber/xbmcbackup.git
synced 2024-12-22 14:05:23 +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 = ""
|
||||
|
||||
def __init__(self):
|
||||
self.APP_KEY = utils.getSetting('dropbox_key')
|
||||
self.APP_SECRET = utils.getSetting('dropbox_secret')
|
||||
self.APP_KEY = utils.getSettingStringStripped('dropbox_key')
|
||||
self.APP_SECRET = utils.getSettingStringStripped('dropbox_secret')
|
||||
|
||||
def setup(self):
|
||||
result = True
|
||||
|
@ -30,6 +30,8 @@ def showNotification(message):
|
||||
def getSetting(name):
|
||||
return __Addon.getSetting(name)
|
||||
|
||||
def getSettingStringStripped(name):
|
||||
return __Addon.getSettingString(name).strip()
|
||||
|
||||
def getSettingBool(name):
|
||||
return bool(__Addon.getSettingBool(name))
|
||||
|
Loading…
Reference in New Issue
Block a user