added message to create Dropbox key/secret

This commit is contained in:
Rob Weber 2012-12-30 15:18:59 -06:00
parent 361be97e34
commit e582be4c7b
2 changed files with 6 additions and 0 deletions

View File

@ -39,6 +39,8 @@
<string id="30054">Removing backup</string>
<string id="30056">Check log for Dropbox authorize URL</string>
<string id="30057">Click OK when authorized</string>
<string id="30058">Dropbox Developer Code Needed</string>
<string id="30059">Visit https://www.dropbox.com/developers</string>
<string id="30060">Enable Scheduler</string>
<string id="30061">Schedule</string>

View File

@ -64,6 +64,10 @@ class DropboxFileSystem(Vfs):
client = None
def __init__(self):
if(APP_KEY == '' or APP_SECRET == ''):
xbmcgui.Dialog().ok(utils.getString(30010),utils.getString(30058),utils.getString(30059))
return
user_token_key,user_token_secret = self.getToken()
sess = session.DropboxSession(APP_KEY,APP_SECRET,"app_folder")