Skip to content
Browse files

added message to create Dropbox key/secret

  • Loading branch information...
1 parent 361be97 commit e582be4c7b6c637b3dd3c801bc46663e437023f4 @robweber committed Dec 30, 2012
Showing with 6 additions and 0 deletions.
  1. +2 −0 resources/language/English/strings.xml
  2. +4 −0 resources/lib/vfs.py
View
2 resources/language/English/strings.xml
@@ -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
4 resources/lib/vfs.py
@@ -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")

0 comments on commit e582be4

Please sign in to comment.
Something went wrong with that request. Please try again.