diff --git a/resources/language/English/strings.xml b/resources/language/English/strings.xml
index c6d4e5e..6a315a8 100644
--- a/resources/language/English/strings.xml
+++ b/resources/language/English/strings.xml
@@ -47,8 +47,8 @@
Writing file
Starting scheduled backup
Removing backup
- Check log for Dropbox authorize URL
- Click OK when authorized
+ Go to this URL to authorize
+ Click OK AFTER completion
Dropbox Developer Code Needed
Visit https://www.dropbox.com/developers
Enable Scheduler
@@ -93,4 +93,6 @@
Open Settings
Extracting Archive
Error extracting the zip archive
+ Click OK to enter code
+ Google Drive Validation Code
diff --git a/resources/lib/vfs.py b/resources/lib/vfs.py
index f5511cf..8e8475c 100644
--- a/resources/lib/vfs.py
+++ b/resources/lib/vfs.py
@@ -1,4 +1,5 @@
import utils as utils
+import tinyurl as tinyurl
import xbmc
import xbmcvfs
import xbmcgui
@@ -135,14 +136,14 @@ class DropboxFileSystem(Vfs):
user_token_key,user_token_secret = self.getToken()
sess = session.DropboxSession(self.APP_KEY,self.APP_SECRET,"app_folder")
- utils.log("token:" + user_token_key + ":" + user_token_secret)
+
if(user_token_key == '' and user_token_secret == ''):
token = sess.obtain_request_token()
url = sess.build_authorize_url(token)
#print url in log
utils.log("Authorize URL: " + url)
- xbmcgui.Dialog().ok(utils.getString(30010),utils.getString(30056),utils.getString(30057))
+ xbmcgui.Dialog().ok(utils.getString(30010),utils.getString(30056),utils.getString(30057),tinyurl.shorten(url))
#if user authorized this will work
user_token = sess.obtain_access_token(token)
@@ -304,7 +305,8 @@ class GoogleDriveFilesystem(Vfs):
utils.log("Google Drive Authorize URL: " + drive_url)
- code = xbmcgui.Dialog().input('Google Drive Validation Code','Input the Validation code after authorizing this app')
+ xbmcgui.Dialog().ok(utils.getString(30010),utils.getString(30056),utils.getString(30102),tinyurl.shorten(drive_url))
+ code = xbmcgui.Dialog().input(utils.getString(30103))
gauth.Auth(code)
gauth.SaveCredentialsFile(xbmc.validatePath(xbmc.translatePath(utils.data_dir() + 'google_drive.dat')))