This is taken from the Kodi forums:
Go to
https://console.developers.google.com/apis/
Click on Credentials, then New Credentials, then API key, and select Browser Key, give it a name and click Create (this creates the KEY)
Then back to Credentials
Click on Credentials, then New Credentials, then OAuth Client ID, select Other, give it a name and click Create (this creates the ID and SECRET)
At this point you've got 2 sets of credentials
Verify that the Youtube API is enabled
Go to
https://console.developers.google.com/apis/enabled
Verify that you see YouTube Data API v3 in the list
If it is NOT in the list go to
https://console.developers.google.com/apis/library
Click on the link for YouTube Data Api
Click on Enable API at the top
Go back to
https://console.developers.google.com/apis/enabled
Verify that YouTube Data API v3 is now in the list
Locate the file - login_client.py
(On Windows it's located here - C:\Users\username\AppData\Roaming\Kodi\addons\plugin.video.youtube\resources\lib\youtube\client
Within the file login_client.py find the section that corresponds to the version of KODI that you're using in my case I'm running version 15.2
youtube-for-kodi-15': {
'system': 'Isengard',
'key': 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa',
'id': 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbb.apps.googleusercontent.com',
'secret': 'ccccccccccccccccccccccccccc'
Set the Key to the Browser API key you created first
Set the ID to the OAuth Client ID you created second
Set the Secret to the Client Secret shown in OAuth Client ID
(Make sure that you're copying and pasting these between the quote marks)
Save the updated login_client.py file
Then launch KODI
Select the YOUTUBE Addon
Select SIGN IN
Then do the 2 x activation thing where you go to
youtube.com/activate
Enter the code from KODI, click NEXT then click ALLOW
Then enter the second code from KODI, click NEXT, then ALLOW
And that should be it
No comments:
Post a Comment