From e582be4c7b6c637b3dd3c801bc46663e437023f4 Mon Sep 17 00:00:00 2001 From: Rob Weber Date: Sun, 30 Dec 2012 15:18:59 -0600 Subject: [PATCH] added message to create Dropbox key/secret --- resources/language/English/strings.xml | 2 ++ resources/lib/vfs.py | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/resources/language/English/strings.xml b/resources/language/English/strings.xml index 0525bd6..4848aed 100644 --- a/resources/language/English/strings.xml +++ b/resources/language/English/strings.xml @@ -39,6 +39,8 @@ Removing backup Check log for Dropbox authorize URL Click OK when authorized + Dropbox Developer Code Needed + Visit https://www.dropbox.com/developers Enable Scheduler Schedule diff --git a/resources/lib/vfs.py b/resources/lib/vfs.py index a86247b..2d7a1d0 100644 --- a/resources/lib/vfs.py +++ b/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")