Open kamillopl opened 6 months ago
You will need a project with Google Drive API privileges. From there, you will need to create a OAuth client ID in the form of a web application with this redirect URI: http://localhost:8011/status
To get started: https://console.cloud.google.com/apis/library/drive.googleapis.com
Credentials don't have to be updated as far as I'm aware.
This video may be of help: https://www.youtube.com/watch?v=RwtUBOijAx4
@JDRIVO I tried the above mentioned steps and created OAuth client ID in the form of a web application with this redirect URI: http://localhost:8011/status
But it is showing error as Error 400: redirect_uri_mismatch
Sorry, 8011 is the default port. If you have changed the port within the addon settings (under the streamer category) then you will need to change the port in the url to that. So for example, if you changed the port to 8564 within the addon then the url needs to be: http://localhost:8564/status
@JDRIVO I tried changing port from config and updated same on oauth. Still seeing same error. I am using enroll account option to register using oauth client id
"Enroll account"... I recall removing that terminology in recent versions of gDrive. And have just double checked to ensure it isn't present in the current version which leads me to believe you must be using an old version. Did you download gDrive from one of the zips listed here https://github.com/JDRIVO/gDrive/releases/tag/v1.0.0? If you did, they are obsolete. You will need to download it from https://github.com/JDRIVO/gDrive/archive/refs/heads/master.zip
@JDRIVO I can able to connect now after installing master.zip. But when i try to access it is showing me folder name and I am not able to see the files inside the folder. Any other permission required to access the file. I have already enabled google drive API before creating the token.
Note Found one challenge while connecting. Add on shows URL as localhost instead of local IP for connection. It will work only when device and browser are same. Not working when we use add on and browser on different device even though they are sharing same WiFi. We need to manually identify the local IP of the device to access the URL on another device. In old Add on it shows local IP.
If you hold down the select button when highlighting a folder in your google drive account, a context menu should appear presenting the option to "Sync folder". Click that. I'd recommend increasing the threads to 10+ in the sync settings category to decrease the time it takes to sync the folder.
Yes, unfortunately google made API changes so that the only way to access the google auth page is through localhost. Meaning you have to access localhost using a browser on the same device that Kodi is running. I added an import account option in case you have a secondary device that doesn't have browser access.
No info about how to make it work. We need to create new project and add Google Drive v3 API, then make test user and provide his credentials, it is it? Does that require every 7 days credentials update?