mirror of
				https://github.com/robweber/xbmcbackup.git
				synced 2025-10-31 17:41:03 +01:00 
			
		
		
		
	updated for google oauth and googleapi version bumps
This commit is contained in:
		| @@ -5,10 +5,10 @@ | ||||
| 	<!-- jarvis --> | ||||
|     <import addon="xbmc.python" version="2.24.0"/> | ||||
|     <import addon="script.module.httplib2" version="0.8.0" /> | ||||
|     <import addon="script.module.oauth2client" version="1.4.11" /> | ||||
|     <import addon="script.module.oauth2client" version="4.1.2" /> | ||||
|     <import addon="script.module.uritemplate" version="0.6" /> | ||||
|     <import addon="script.module.yaml" version="3.11"/> | ||||
|     <import addon="script.module.googleapi" version="1.4.2" /> | ||||
|     <import addon="script.module.googleapi" version="1.6.4" /> | ||||
| 	<import addon="script.module.requests" version="2.9.1" /> | ||||
|   </requires> | ||||
|   <extension point="xbmc.python.script" library="default.py">  | ||||
|   | ||||
| @@ -2,6 +2,7 @@ Version 1.1.1 | ||||
|  | ||||
| fixed error on authorizers (missing secret/key) | ||||
| added ability to "catchup" on missed scheduled backup | ||||
| updated google oauth and client versions | ||||
|  | ||||
| Version 1.1.0 | ||||
|  | ||||
|   | ||||
| @@ -3,17 +3,16 @@ import webbrowser | ||||
| import httplib2 | ||||
| import oauth2client.clientsecrets as clientsecrets | ||||
|  | ||||
| from apiclient.discovery import build | ||||
| from googleapiclient.discovery import build | ||||
| from functools import wraps | ||||
| from oauth2client.client import FlowExchangeError | ||||
| from oauth2client.client import AccessTokenRefreshError | ||||
| from oauth2client.client import OAuth2WebServerFlow | ||||
| from oauth2client.client import OOB_CALLBACK_URN | ||||
| from oauth2client.file import Storage | ||||
| from oauth2client.file import CredentialsFileSymbolicLinkError | ||||
| from oauth2client.tools import ClientRedirectHandler | ||||
| from oauth2client.tools import ClientRedirectServer | ||||
| from oauth2client.util import scopes_to_string | ||||
| from oauth2client._helpers import scopes_to_string | ||||
| from .apiattr import ApiAttribute | ||||
| from .apiattr import ApiAttributeMixin | ||||
| from .settings import LoadSettingsFile | ||||
| @@ -234,7 +233,7 @@ class GoogleAuth(ApiAttributeMixin, object): | ||||
|     try: | ||||
|       storage = Storage(credentials_file) | ||||
|       self.credentials = storage.get() | ||||
|     except CredentialsFileSymbolicLinkError: | ||||
|     except IOError: | ||||
|       raise InvalidCredentialsError('Credentials file cannot be symbolic link') | ||||
|  | ||||
|   def SaveCredentials(self, backend=None): | ||||
|   | ||||
| @@ -1,8 +1,8 @@ | ||||
| import io | ||||
| import mimetypes | ||||
|  | ||||
| from apiclient import errors | ||||
| from apiclient.http import MediaIoBaseUpload | ||||
| from googleapiclient import errors | ||||
| from googleapiclient.http import MediaIoBaseUpload | ||||
| from functools import wraps | ||||
|  | ||||
| from .apiattr import ApiAttribute | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Rob Weber
					Rob Weber