-
Notifications
You must be signed in to change notification settings - Fork 113
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Instructions for creating an API key and OAuth credentials #439
Comments
Here are my 2 cents for this issue. I found this great video explaining the process, unfortunately it's in French 😁 . >>> https://www.youtube.com/watch?v=kKMFH5SwyNw <<< As a complement, here is a small written tutorial with the steps. API Key Creation
Alternatively you can add your Account as a Test User, thereby allowing access. By default nobody (not even the account owning the project) has access. Kudos to #312 for this method
Configure the Add-onFollow the instructions in the wiki section: https://github.com/anxdpanic/plugin.video.youtube/wiki/Personal-API-Keys#configure-the-add-on Sign InDuring the add-on Sign in process you'll be asked to The second time you
From there clicking This should be it! 🎉 🎉 🎉 Additional notesI have noticed that I had to run the whole (this may be related to #388) But the good new is, after all this, Kodi now finally remembers my account each time I start it up 🎉 🎉 🎉 I hope this little guide will be helpful to some of you, and why not, could help updating the wiki 😇 |
just reupload it to other service. Vimeo, Odysee or other |
Thanks for the detailed guide @slax57! ❤️ I also found this guide helpful for those looking for english screenshots. |
Is there any fix to make this work if you have 2 factor authentication enabled on the account? |
What doesn't work when you have 2FA enabled? You need to authenticate account access via a browser to grant Kodi the OAuth access token, and it is only when you login in the browser that you would need to provide the details for the 2FA. Unless something has changed? |
I am getting a 400 invalid_token error |
The error is fairly self explanatory - it means that the token you are using is not valid. This usually will happen when you created the wrong type of token, or are using an old token that is no longer valid that causes the revoke endpoint to return this error when trying to refresh the access token. This is just a guess because you are not really providing any useful details to diagnose what the problem could be. You should create a new project/API key with the proper scope, and create new credentials. Enter the new API key details into the addon settings and try signing in again. If you are still having the same problem create a new issue with full details and a debug log. |
I reset every page of the addon settings to default and still same error. My token is years old. I will try and create new credentials and try again |
Yeah that is the likely cause, they can be revoked due to lack of use, change in scope, on Google's whim, etc. Just to be sure, make a new API key as well, not just new credentials for an old key. |
ok I redid the auth and had to log in twice. Seemingly successful. But I get:
|
The log is a little strange. You only seem to have logged out and logged back in 7 minutes before closing Kodi, but the quota exceeded errors were occuring well before that. It almost sounds like your API key has been disabled, but you didn't create a new API key, just a new valid OAuth credential for the existing disabled API key, which is why you are no longer getting the invalid_token_error but the quotaExceeded error instead. It is not uncommon for this to occur which is why I recommended creating a new API key, not just a new OAuth credential.
If you are absolutely sure you created a new API key before this, then one thing to check is to go to https://console.cloud.google.com/apis/api/youtube.googleapis.com/quotas and check what your quota allocaton and usage actually is. You should see something like the table below: In some instances a newly created API key may have close to 100% of the daily quota allowance already used, which resets after a period of time (at most one day). Alternatively if you have a disabled API key, you will see that your quote limit is set to zero, and your only option is to create a new API key. Edit: Also update the addon from here: https://github.com/anxdpanic/plugin.video.youtube/releases/latest |
Quota is 0. I did create a new API. I updated yesterday to the new version as well. I'm going to try making a new project etc again.... |
Hmm that sucks. It happens sometimes for seemingly no reason, and worst of all there is no advance warning either.
Yeah unfortunately creating a new API key is your only option, and creating a new project is probably a good idea too. |
I DID create a new API key yesterday as you suggested and today I did the new project and I have a 10000 quota and it's working. Finally. Big thanks for this addon and all your help. |
I'll admit I was suspicious because the process is not straightforward and it is easy to not know the reason/significance of each step, but I do believe you (at least now 🙂). Why it happens, even for a new API key, is something only Google can answer, but it's good you got it working despite the hassle. |
Yeah i had it working years ago before I switched to using 2FA and it hasn't worked since. It was on the backburner but made it to the front now…. |
This is what I did -and worked- when Youtube had a quota frenzy on me last year:
|
Hi,
On the Personal API Keys wiki page , the tutorial video for generating API keys is down : "This video has been removed for violating YouTube's Terms of Service"
Video URL : https://www.youtube.com/watch?v=4iFaY8IpTeI
Currently, there is no other explanation than this video tutorial in the wiki unfortunately.
Thank you for this amazing Kodi plugin 😍
The text was updated successfully, but these errors were encountered: