Kodi Community Forum
YouTube Plug-in Thread - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Add-on Support (https://forum.kodi.tv/forumdisplay.php?fid=27)
+---- Forum: Video Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=154)
+---- Thread: YouTube Plug-in Thread (/showthread.php?tid=353278)



RE: YouTube Plug-in Thread - DJB628 - 2020-02-20

(2020-02-20, 20:01)BikerDude Wrote:
(2020-02-20, 19:49)DJB628 Wrote: Don't know if posted or mentioned so far, but here is an easy and temp fix for now

Go into YouTube  Add-on settings > API > disable personal API keys > use preset API key #5

hi folks 

if i go to YouTube  Add-on settings > API > disable personal API keys > use preset API key #5 i cannot get access to API. once this is clarified

what do you mean use preset api key '5

thanks  

I edited my post above, with better instructions


RE: YouTube Plug-in Thread - DarrenHill - 2020-02-20

(2020-02-20, 19:50)confused Wrote: Same problem here, for all "real world users" I suggest marking this addon as broken.

No, as it isn't broken.

Yes it takes some configuration work to set up, but as can be seen from this thread it is perfectly possible to do so.

And most people here are "real world users". If it's too much then a different solution to watch YouTube than Kodi may be required, but we will not deprive people who can configure it from the addon just because others can't configure it properly.


RE: YouTube Plug-in Thread - black_eagle - 2020-02-20

(2020-02-20, 20:01)BikerDude Wrote:
(2020-02-20, 19:49)DJB628 Wrote: Don't know if posted or mentioned so far, but here is an easy and temp fix for now

Go into YouTube  Add-on settings > API > disable personal API keys > use preset API key #5

hi folks 

if i go to YouTube  Add-on settings > API > disable personal API keys > use preset API key #5 i cannot get access to API. once this is clarified

what do you mean use preset api key '5

thanks 

Do this ......

Click on 'settings'  (cogwheel in top left if you are using Estuary) -> addons -> my addons -> video addons -> youtube.

Click the 'configure' button.

Highlight 'API' on the left.  You will now see some settings on the right.  Turn OFF 'Enable personal API keys' if it is enabled. A setting called 'Use preset API key set' will appear.  Click the up/down arrows until it says '5'.  Click OK.  Enjoy youtube until that set of keys are disabled.


RE: YouTube Plug-in Thread - IgaBiva - 2020-02-20

Comment from my side - I just followed instruction from a first post and it worked without any issues. Everything is perfectly good described and it took me about 5 minutes to complete all.

Interestingly enough, add-on works for me without a need to login so I simply skipped this part.


RE: YouTube Plug-in Thread - Perzegone - 2020-02-20

It worked to me for about 30 mins. then it started to keep sending "The OAuth client was deleted". I have rebooted my device and tried again...it requested for the two device verification. The Youtube addon was successful, but in case of the personal data addon, I got the following message: "Logging in with google is temporarily denied for this applicaion"


RE: YouTube Plug-in Thread - kodden - 2020-02-21

Still can't get the API key input to work, if I enter the keys into api_keys.json and delete access_manager.json and start kodi, go to the YouTube addon and try Search for something (without logging in) I get YouTube: keyInvalid API Key Invalid from the add-on.

2020-02-20 23:04:49.507 T:139838744352512   ERROR: [plugin.video.youtube] Error reason: |keyInvalid| with message: |Bad Request|

If I do try to sign in, and enter the code shown through google.com/device, it then gives the 401 Client Secret Incorrect error instead.

The google API dashboard show that nobody has used the API at all through the keys..


RE: YouTube Plug-in Thread - Pienoet - 2020-02-21

(2020-02-20, 22:14)Perzegone Wrote: It worked to me for about 30 mins. then it started to keep sending "The OAuth client was deleted". I have rebooted my device and tried again...it requested for the two device verification. The Youtube addon was successful, but in case of the personal data addon, I got the following message: "Logging in with google is temporarily denied for this applicaion"

Yeah same here


RE: YouTube Plug-in Thread - neurosis13 - 2020-02-21

(2020-02-21, 00:06)Pienoet Wrote:
(2020-02-20, 22:14)Perzegone Wrote: It worked to me for about 30 mins. then it started to keep sending "The OAuth client was deleted". I have rebooted my device and tried again...it requested for the two device verification. The Youtube addon was successful, but in case of the personal data addon, I got the following message: "Logging in with google is temporarily denied for this applicaion"

Yeah same here 

for what it's worth, same here.


RE: YouTube Plug-in Thread - Pienoet - 2020-02-21

(2020-02-21, 00:55)neurosis13 Wrote:
(2020-02-21, 00:06)Pienoet Wrote:
(2020-02-20, 22:14)Perzegone Wrote: It worked to me for about 30 mins. then it started to keep sending "The OAuth client was deleted". I have rebooted my device and tried again...it requested for the two device verification. The Youtube addon was successful, but in case of the personal data addon, I got the following message: "Logging in with google is temporarily denied for this applicaion"

Yeah same here  

for what it's worth, same here. 

i just filled in my api keys and it works fine now.


RE: YouTube Plug-in Thread - jdig4240 - 2020-02-21

Thanks, followed new API instructions and personal keys work perfect, THANKS!!!


RE: YouTube Plug-in Thread - BikerDude - 2020-02-21

hello all

tried to configure youtube add on and tried to access the API selection to no avail it does not let me access that sub menu


RE: YouTube Plug-in Thread - Dorector - 2020-02-21

(2020-02-21, 09:45)BikerDude Wrote: hello all

tried to configure youtube add on and tried to access the API selection to no avail it does not let me access that sub menu

I'm having the same issue.  I found the API section and set it to '5' and now I'm getting the old 'daily limit exceeded' message. I'm not a dev and not interested in logging and making accounts with google.  Does anyone know if there is a dtube or bitchute app I can use if we can;t get the youtube app fixed?  Cheers


RE: YouTube Plug-in Thread - sanjonny - 2020-02-21

(2020-02-21, 09:55)Dorector Wrote:
(2020-02-21, 09:45)BikerDude Wrote: hello all

tried to configure youtube add on and tried to access the API selection to no avail it does not let me access that sub menu

I'm having the same issue.  I found the API section and set it to '5' and now I'm getting the old 'daily limit exceeded' message. I'm not a dev and not interested in logging and making accounts with google.  Does anyone know if there is a dtube or bitchute app I can use if we can;t get the youtube app fixed?  Cheers 
I kinda figured that was gonna happen. Im sure the original issue that caused us to use personal api keys will keep popping up as everyone who used those 1-5 before will now be doing that and so if those dont work, everyone is using 5 so its daily quota will be used up. you probably have to setup your own api over the longer term till google changes its mind again


RE: YouTube Plug-in Thread - sanjonny - 2020-02-21

(2020-02-19, 14:06)sanjonny Wrote:
(2020-02-19, 13:05)curael Wrote:
(2020-02-19, 12:39)HYPERIONzoom Wrote: Adding API keys is not working for me. All I get is "LOGINEXCEPTION:[401] UNATHORIZED_CLIENT". These are new keys (I didn't have a use for them before). I've turned off "use developer keys". I've used copy and paste to make triple sure that I copied the correct credentials in for API key, AIP ID and API Secret. I've tried uninstalling (though Kodi doesn't allow me to uninstall the YouTube addon due to a dependency). I've tried clearing and deleting all the settings etc and running the setup wizard.

It's just not working for me.

Here's to hoping an update can fix this problem for all of us.

Did you do "remove user" after you added the API key? I had to reregister the app from scratch after the keys were inserted. And then it worked. You could also try deleting the addon from your OS instead of inside Kodi. Since you can't remove it. But for me, I didn't have to remove anything. Just remove the "default" user in the addon settings and then do the two auth requests again on google.com/device or what ever. The name of the API access should then show up during registration.      
I would also add I ran into numerous problems getting it to work even though I had a valid oauth setup in the past. Three things I found. If you have not used your api id in awhile, it is deleted deactivated by google (found this on an authentication forum)

*****EDIT, Just start a new api.
 If you hand create the api key or the oauth key without doing it thru the enabling the youtube v3 and using the create credentials dialog, it will fail, (also from another forum) neiither of these are documented. So process should be
If you already have an old api id, just delete it, rekeying will not work if it has been more than 60 or 90 days
Follow the github guide at https://github.com/jdf76/plugin.video.youtube/wiki/Personal-API-Keys, it will look different but basically
1 create the developer account
2. enable the youtube v3 api...YOU MUST USE THAT dialog to create the oauth credentials FIRST (on my screen, the create button was on the right after enabling the api), and the consent screen, give a name then CREATE the api key. Doing it in a different order or creating the oauth without doing it when you first enable the api will fail with the eventual error message of you have not enabled the api when you try in kodi....
3. First check the setting in app is set to personal and make sure allow developer keys is off. I found it easiest to copy the keys and secret via the web interface in the app Enable the api configuration page, to enable this go to the 
Settings - API
 and enable 
Enable API configuration page


You should then be able to update your keys by visiting 
http://<IP of Kodi device>:<port>/api
The port used is 
Settings - HTTP Server - Port
 which by default is 50152
XXXXXXXHUGE IMPORTANT WARNING......You must....
4. Go to maintenance setting and clear the access_manager.json file before you restart if you don't, it will not work. you can also delete that file by hand but heck, you are already in the user interface, its like 4 clicks.
If you don't delete it, it rewrites
XXXXXXEND HUGE IMPORTANT WARNING!
5. Restart kodi. Then do the login scripts. 
There is one part I am unsure of...somewhere in the oath setup about, you pick devices and access. EDIT not necessary ---I had to click to add zone access (otherwise its just email and profile). I do not know if that is required to run the app, but I enabled all the locked youtube. That means they will review it at some point, but you might not need to do that to get it to work. ENDedit.

when you reboot kodi, you should get the 2 google auth screens when you try to sign in.

One final hint, if you are doing it on multiple devices, after the first is set, use file manager to copy apikeys.json (or whatever it is called) to a network location so you can just add that to the next kodi box. I believe the file is in profiles/add_ondata/plugin.youtube.whatever. That saved time doing my 4 boxes as you just copy that file to the new device using filemanager, then start at step 4 above, saves you all the cut and pastes, restart and do logins.
If I think of anything else I will add it, but once I figured it out, got all 4 boxes up in about 7 or 8 minutes. On my devices where I just copied the files, I did not change user status at all, becuase wiping accessmanager I think does that anyway. I will try it out more later but hopefully that solves your problems.   

I updated the original instructions I wrote based on comments to make it easier to understand. Eventually the github page will probably add all this in making my post not necessary but till then. Thanks for such a great addon


RE: YouTube Plug-in Thread - giaur - 2020-02-21

Why can't we use Youtube without any credentials, anonymously similar as browsing Youtube site and watching videos without login?