plugin.video.youtube icon indicating copy to clipboard operation
plugin.video.youtube copied to clipboard

Personal API Keys are required

Open feuille2lune opened this issue 5 years ago • 115 comments

Since today I'm unable to playing any video on Corelec 9.2.1.

It seems that this youtube extension project is on the way to be deleted in Google's API access.

there is the traceback when I lanch a video :

                                        Traceback (most recent call last):
                                          File "/storage/.kodi/addons/plugin.video.youtube/resources/lib/default.py", line 15, in <module>
                                            runner.run(__provider__)
                                          File "/storage/.kodi/addons/plugin.video.youtube/resources/lib/youtube_plugin/kodion/runner.py", line 60, in run
                                            __RUNNER__.run(provider, context)
                                          File "/storage/.kodi/addons/plugin.video.youtube/resources/lib/youtube_plugin/kodion/impl/xbmc/xbmc_runner.py", line 33, in run
                                            results = provider.navigate(context)
                                          File "/storage/.kodi/addons/plugin.video.youtube/resources/lib/youtube_plugin/kodion/abstract_provider.py", line 99, in navigate
                                            result = method(context, re_match)
                                          File "/storage/.kodi/addons/plugin.video.youtube/resources/lib/youtube_plugin/kodion/register_provider_path.py", line 19, in wrapper
                                            return func(*args, **kwargs)
                                          File "/storage/.kodi/addons/plugin.video.youtube/resources/lib/youtube_plugin/youtube/provider.py", line 749, in on_play
                                            return yt_play.play_video(self, context)
                                          File "/storage/.kodi/addons/plugin.video.youtube/resources/lib/youtube_plugin/youtube/helper/yt_play.py", line 86, in play_video
                                            use_play_data=playback_history)
                                          File "/storage/.kodi/addons/plugin.video.youtube/resources/lib/youtube_plugin/youtube/helper/utils.py", line 411, in update_play_info
                                            video_data = resource_manager.get_videos([video_id])
                                          File "/storage/.kodi/addons/plugin.video.youtube/resources/lib/youtube_plugin/youtube/helper/resource_manager.py", line 138, in get_videos
                                            result.update(self._update_videos(list_of_50, live_details))
                                          File "/storage/.kodi/addons/plugin.video.youtube/resources/lib/youtube_plugin/youtube/helper/resource_manager.py", line 121, in _update_videos
                                            if self.handle_error(json_data):
                                          File "/storage/.kodi/addons/plugin.video.youtube/resources/lib/youtube_plugin/youtube/helper/resource_manager.py", line 240, in handle_error
                                            raise Exception(error_message)
                                        Exception: Error reason: |accessNotConfigured| with message: |Project 294899064488 has been scheduled for deletion and cannot be used for API calls. Visit https://console.developers.google.com/iam-admin/projects?pendingDeletion=true to undelete the project.|
                                        -->End of Python script error report<--

2020-02-17 19:19:46.590 T:4092208976 ERROR: Playlist Player: skipping unplayable item: 0, path [plugin://plugin.video.youtube/play/?video_id=dMvn1D5aTY8]

feuille2lune avatar Feb 17 '20 18:02 feuille2lune

Using your own API keys is the only way to resolve this at this moment. For information on how to do this, see https://github.com/jdf76/plugin.video.youtube/wiki/Personal-API-Keys

Edit: For users that only require playback and don't use the add-on to browse content, https://github.com/enen92/script.tubecast may be an alternative solution for you.

Edit: Additional information,

https://github.com/jdf76/plugin.video.youtube/issues/736#issuecomment-587836438 https://github.com/jdf76/plugin.video.youtube/issues/736#issuecomment-587850599

anxdpanic avatar Feb 17 '20 18:02 anxdpanic

thx for the workaround, I'll try that :)

feuille2lune avatar Feb 17 '20 18:02 feuille2lune

api key not working unfortunately i just tried it out ... I tried more ... there will be something else wrong

fabalu avatar Feb 17 '20 19:02 fabalu

I tried too and it's a failure too. When trying to add an Oauth client ID, there no occurence to the consent screen. There is only a json to download...

feuille2lune avatar Feb 17 '20 19:02 feuille2lune

@feuille2lune
Please keep your keys private. I removed the image, please delete the image and recreate a new project. I'm not able to go over the steps atm to check them. The guide was very recently created, but if things have changed you'll have to see if you can obtain the appropriate keys still and just use the guide as reference.

anxdpanic avatar Feb 17 '20 19:02 anxdpanic

this really works. thank you for the workaround.

andy5macht avatar Feb 17 '20 19:02 andy5macht

I have the same issue. Login doesn't work

KG3RK3N avatar Feb 17 '20 19:02 KG3RK3N

Same issue here. I recreated the API-keys but still no login :(

Ditoxius avatar Feb 17 '20 19:02 Ditoxius

Can confirm that the workaround process works. I created the client_id, client_secret, and api token, and manually inserted it into api_keys.json.

It initially didn't work, but checking in the Youtube API Settings page on Kodi, it showed that Kodi doesn't dynamically (re)load the contents of api_keys.json. Restarting Kodi fixed this, and I was able to proceed with the google.com/device process

kylegordon avatar Feb 17 '20 20:02 kylegordon

I'm too on google.com/device step after regenerating key and secret.

Now I've to wait a little. I'm on this error :

Exception: Error reason: |accessNotConfigured| with message: |Access Not Configured. YouTube Data API has not been used in project <#number> before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/youtube.googleapis.com/overview?project=<#number> then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry.|

feuille2lune avatar Feb 17 '20 20:02 feuille2lune

Having the same issue @feuille2lune is having.

  • created api keys
  • did the google.com/device process twice
  • getting Access Not Configured. YouTube Data API has not been used in project <#number> before or it is disabled
  • verfied that the APi is enabled in the project
  • waited 30 min, retried, still the same error
  • very sad that Google is making things so difficult for KODI users. Shame on them.

Log:

020-02-17 21:13:02.678 T:2479833968 NOTICE: [plugin.video.youtube] Running: YouTube (6.6.0) on Leia (Kodi-18.5) with Python 2.7.16 Path: / Params: {} 2020-02-17 21:13:06.091 T:2479833968 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<-- - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS! Error Type: <type 'exceptions.Exception'> Error Contents: Error reason: |accessNotConfigured| with message: |Access Not Configured. YouTube Data API has not been used in project ####### before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/youtube.googleapis.com/overview?project=####### then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry.| Traceback (most recent call last): File "/storage/.kodi/addons/plugin.video.youtube/resources/lib/default.py", line 15, in runner.run(provider) File "/storage/.kodi/addons/plugin.video.youtube/resources/lib/youtube_plugin/kodion/runner.py", line 60, in run RUNNER.run(provider, context) File "/storage/.kodi/addons/plugin.video.youtube/resources/lib/youtube_plugin/kodion/impl/xbmc/xbmc_runner.py", line 33, in run results = provider.navigate(context) File "/storage/.kodi/addons/plugin.video.youtube/resources/lib/youtube_plugin/kodion/abstract_provider.py", line 99, in navigate result = method(context, re_match) File "/storage/.kodi/addons/plugin.video.youtube/resources/lib/youtube_plugin/kodion/abstract_provider.py", line 132, in _internal_root return self.on_root(context, re_match) File "/storage/.kodi/addons/plugin.video.youtube/resources/lib/youtube_plugin/youtube/provider.py", line 1485, in on_root playlists = resource_manager.get_related_playlists(channel_id='mine') File "/storage/.kodi/addons/plugin.video.youtube/resources/lib/youtube_plugin/youtube/helper/resource_manager.py", line 183, in get_related_playlists result = self._update_channels([channel_id]) File "/storage/.kodi/addons/plugin.video.youtube/resources/lib/youtube_plugin/youtube/helper/resource_manager.py", line 78, in _update_channels if self.handle_error(json_data): File "/storage/.kodi/addons/plugin.video.youtube/resources/lib/youtube_plugin/youtube/helper/resource_manager.py", line 240, in handle_error raise Exception(error_message) Exception: Error reason: |accessNotConfigured| with message: |Access Not Configured. YouTube Data API has not been used in project ####### before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/youtube.googleapis.com/overview?project=####### then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry.| -->End of Python script error report<-- 2020-02-17 21:13:06.326 T:2362037104 ERROR: GetDirectory - Error getting plugin://plugin.video.youtube/ 2020-02-17 21:13:06.345 T:3012050960 ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.video.youtube/) failed`

ron-1986 avatar Feb 17 '20 20:02 ron-1986

After about 30 min and a Kodi restart the login works

KG3RK3N avatar Feb 17 '20 20:02 KG3RK3N

I did all written on this page: https://github.com/jdf76/plugin.video.youtube/wiki/Personal-API-Keys, It could look a bit different because they change things on a daily base. I created a API KEY, API ID(Client ID) with a API SECRET(Client secret). Then i went to the Youtube addon in kodi. Settings, API. And just past those things in (I did this by sending me those keys by web.whatsapp to my phone. Then select that message and copy, paste it in the message field and then i could select the strings. And use "Yahtse" to select the field in youtube module and paste, just to avoid typos). After hitting OK it just works instantly.

lemn8 avatar Feb 17 '20 20:02 lemn8

1 hour and a reboot later nothing changes for me. pretty strange.

feuille2lune avatar Feb 17 '20 21:02 feuille2lune

I tried to update the Keys in my .json

But after 1 hour and a device authentication, I still get the 401 Error :(

Ditoxius avatar Feb 17 '20 21:02 Ditoxius

On the dashboard of the Google project I strangely get an error for the Youtube API.

1 Try 100% error rate.

Anyone else?

Ditoxius avatar Feb 17 '20 21:02 Ditoxius

I was also having issues with 401 authentication and what I did was to completely uninstall the YouTube plugin.

Note that for some reason the first time I tried to do this, even though I thought it was uninstalled it actually wasn't. Maybe because I selected the option to not remove all data. After a few restarts I tried uninstalling again, this time fully removing all data, and it worked. Then I restarted the PC, installed the plugin again, added the keys to the api_keys.json file, restarted again, and finally logged in to YouTube as usual.

ricardograca avatar Feb 17 '20 21:02 ricardograca

Hi All,

I got an email from google saying all the old Youtube keys will be deleted. So I deleted all the old projects linked to the old keys. Since google is going to delete it for me in 4 days anyways.

You guys will need to create your own key which there are instructions in the first page of the forum.

Thanks Jeff

From Google:

Dear YouTube API Developer,

We are currently conducting a mandatory compliance review of your YouTube Data API Project. The review is to assess your compliance to our YouTube API Services Developer Policies (link https://www.google.com/appserve/mkt/p/AFnwnKXhlbmVZCvLE8uliTW-6LUr66X99LgbSgNrnxobsP5UOfeuYBJFr8yPFUKEHv7QrL3QTL3l1MNPzTbRSRtEFXxFVUx09cRIQVsk1kVGI0InN48GEUYIQ8k7YwFaLzP2z4kgS7Yellwx28mAns8ff9n2Ww_jYDUQu0yWXRiAwvHdWxtz) and to learn about how our service is being used.

At your convenience in the next seven (7) business days, please complete and submit the following information :

A fully functional demo account, including a username and password with which we may access your API Client. The demo account you provide will be used only for compliance inspection and the credentials will not be shared.

A fully completed YouTube API Audit Form https://www.google.com/appserve/mkt/p/AFnwnKWJacdfqIVvhCi7RxE7eQcnkFRTCP4udMuaN62ADFXkMyqGu4CibGZ3WTZzRuZ_eeSwlPd9x3k_GIU9epTy97_23cjgBcja72Q3IYDp_nhLbzofZx-YmBE6mA Screenshots of how your API Client and its users access and use the YouTube API Services

Documents relating to your implementation, access and use of YouTube API Services

For reference, your project numbers are:

761252151047 639620369361 430572714882 294899064488

Please ensure that all required supporting materials are submitted and sufficient, and all questions are answered thoroughly. If this is not the correct or preferred API contact email, or if you would like us to cc any other contacts on future emails, please let us know.

Thanks,

YouTube API Services team


YouTube, LLC 901 Cherry Ave, San Bruno, CA 94066

You have received this mandatory email service announcement to update you about important changes to YouTube products or your account.

On Feb 17, 2020, at 4:29 PM, Ditoxius [email protected] wrote:

On the dashboard of the Google project I strangely get an Error for the Youtube API.

1 Try 100% error rate.

Anyone else?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/jdf76/plugin.video.youtube/issues/736?email_source=notifications&email_token=AC5DGLP67FPTFYK5FNFRAJTRDL6U3A5CNFSM4KWWV242YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEL7W2YQ#issuecomment-587165026, or unsubscribe https://github.com/notifications/unsubscribe-auth/AC5DGLLXFGFULBLQRZVOPU3RDL6U3ANCNFSM4KWWV24Q.

jdf76 avatar Feb 17 '20 21:02 jdf76

Ahem. I cannot complete your carefully curated and screenshotted suggested steps / guide at https://github.com/jdf76/plugin.video.youtube/wiki/Personal-API-Keys . Because after closing kodi and manually editing the api-keys.json with my new credentials, after that restart kodi and it still spams the settings dialogue endlessly. Cannot reset access manager to reconnect devices the final step 'Sign In'. No mater how many times pressing escape the kodi addon settings window keeps coming back up immediately. Along with 'Login Exception 401' notification.

dreamcat4 avatar Feb 17 '20 21:02 dreamcat4

@dreamcat4 You have to completely uninstall the plugin. See my comment above.

ricardograca avatar Feb 17 '20 21:02 ricardograca

for some strange reason the keys I write in the json file are modified once I try to log in with my account. I got a 401 login error due to wrong client secret, but if I check the json I see that ID client was modified (it's missing ".apps.googleusercontent.com") and client secret is correct so this is a credentials problem, simply they don't match

I'm trying to do that on fire tv stick

dontknowcris avatar Feb 17 '20 21:02 dontknowcris

Hi All, I got an email from google saying all the old Youtube keys will be deleted. So I deleted all the old projects linked to the old keys. Since google is going to delete it for me in 4 days anyways. You guys will need to create your own key which there are instructions in the first page of the forum. Thanks Jeff From Google: Dear YouTube API Developer, We are currently conducting a mandatory compliance review of your YouTube Data API Project. The review is to assess your compliance to our YouTube API Services Developer Policies (link https://www.google.com/appserve/mkt/p/AFnwnKXhlbmVZCvLE8uliTW-6LUr66X99LgbSgNrnxobsP5UOfeuYBJFr8yPFUKEHv7QrL3QTL3l1MNPzTbRSRtEFXxFVUx09cRIQVsk1kVGI0InN48GEUYIQ8k7YwFaLzP2z4kgS7Yellwx28mAns8ff9n2Ww_jYDUQu0yWXRiAwvHdWxtz) and to learn about how our service is being used. At your convenience in the next seven (7) business days, please complete and submit the following information : A fully functional demo account, including a username and password with which we may access your API Client. The demo account you provide will be used only for compliance inspection and the credentials will not be shared. A fully completed YouTube API Audit Form https://www.google.com/appserve/mkt/p/AFnwnKWJacdfqIVvhCi7RxE7eQcnkFRTCP4udMuaN62ADFXkMyqGu4CibGZ3WTZzRuZ_eeSwlPd9x3k_GIU9epTy97_23cjgBcja72Q3IYDp_nhLbzofZx-YmBE6mA Screenshots of how your API Client and its users access and use the YouTube API Services Documents relating to your implementation, access and use of YouTube API Services For reference, your project numbers are: 761252151047 639620369361 430572714882 294899064488 Please ensure that all required supporting materials are submitted and sufficient, and all questions are answered thoroughly. If this is not the correct or preferred API contact email, or if you would like us to cc any other contacts on future emails, please let us know. Thanks, YouTube API Services team ---- YouTube, LLC 901 Cherry Ave, San Bruno, CA 94066 You have received this mandatory email service announcement to update you about important changes to YouTube products or your account. On Feb 17, 2020, at 4:29 PM, Ditoxius @.***> wrote: On the dashboard of the Google project I strangely get an Error for the Youtube API. 1 Try 100% error rate. Anyone else? — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <#736?email_source=notifications&email_token=AC5DGLP67FPTFYK5FNFRAJTRDL6U3A5CNFSM4KWWV242YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEL7W2YQ#issuecomment-587165026>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AC5DGLLXFGFULBLQRZVOPU3RDL6U3ANCNFSM4KWWV24Q.

Does this have something to do with not having ads?

lemn8 avatar Feb 17 '20 21:02 lemn8

No that I know of. I think it has more to do with the API keys and YouTube project.

Jeff

On Feb 17, 2020, at 4:56 PM, lemn8 [email protected] wrote:

Hi All, I got an email from google saying all the old Youtube keys will be deleted. So I deleted all the old projects linked to the old keys. Since google is going to delete it for me in 4 days anyways. You guys will need to create your own key which there are instructions in the first page of the forum. Thanks Jeff From Google: Dear YouTube API Developer, We are currently conducting a mandatory compliance review of your YouTube Data API Project. The review is to assess your compliance to our YouTube API Services Developer Policies (link https://www.google.com/appserve/mkt/p/AFnwnKXhlbmVZCvLE8uliTW-6LUr66X99LgbSgNrnxobsP5UOfeuYBJFr8yPFUKEHv7QrL3QTL3l1MNPzTbRSRtEFXxFVUx09cRIQVsk1kVGI0InN48GEUYIQ8k7YwFaLzP2z4kgS7Yellwx28mAns8ff9n2Ww_jYDUQu0yWXRiAwvHdWxtz https://www.google.com/appserve/mkt/p/AFnwnKXhlbmVZCvLE8uliTW-6LUr66X99LgbSgNrnxobsP5UOfeuYBJFr8yPFUKEHv7QrL3QTL3l1MNPzTbRSRtEFXxFVUx09cRIQVsk1kVGI0InN48GEUYIQ8k7YwFaLzP2z4kgS7Yellwx28mAns8ff9n2Ww_jYDUQu0yWXRiAwvHdWxtz) and to learn about how our service is being used. At your convenience in the next seven (7) business days, please complete and submit the following information : A fully functional demo account, including a username and password with which we may access your API Client. The demo account you provide will be used only for compliance inspection and the credentials will not be shared. A fully completed YouTube API Audit Form https://www.google.com/appserve/mkt/p/AFnwnKWJacdfqIVvhCi7RxE7eQcnkFRTCP4udMuaN62ADFXkMyqGu4CibGZ3WTZzRuZ_eeSwlPd9x3k_GIU9epTy97_23cjgBcja72Q3IYDp_nhLbzofZx-YmBE6mA https://www.google.com/appserve/mkt/p/AFnwnKWJacdfqIVvhCi7RxE7eQcnkFRTCP4udMuaN62ADFXkMyqGu4CibGZ3WTZzRuZ_eeSwlPd9x3k_GIU9epTy97_23cjgBcja72Q3IYDp_nhLbzofZx-YmBE6mA Screenshots of how your API Client and its users access and use the YouTube API Services Documents relating to your implementation, access and use of YouTube API Services For reference, your project numbers are: 761252151047 639620369361 430572714882 294899064488 Please ensure that all required supporting materials are submitted and sufficient, and all questions are answered thoroughly. If this is not the correct or preferred API contact email, or if you would like us to cc any other contacts on future emails, please let us know. Thanks, YouTube API Services team ---- YouTube, LLC 901 Cherry Ave, San Bruno, CA 94066 You have received this mandatory email service announcement to update you about important changes to YouTube products or your account. … x-msg://3/# On Feb 17, 2020, at 4:29 PM, Ditoxius @.***> wrote: On the dashboard of the Google project I strangely get an Error for the Youtube API. 1 Try 100% error rate. Anyone else? — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <#736 https://github.com/jdf76/plugin.video.youtube/issues/736?email_source=notifications&email_token=AC5DGLP67FPTFYK5FNFRAJTRDL6U3A5CNFSM4KWWV242YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEL7W2YQ#issuecomment-587165026>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AC5DGLLXFGFULBLQRZVOPU3RDL6U3ANCNFSM4KWWV24Q https://github.com/notifications/unsubscribe-auth/AC5DGLLXFGFULBLQRZVOPU3RDL6U3ANCNFSM4KWWV24Q.

Does this have something to do with not having ads?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/jdf76/plugin.video.youtube/issues/736?email_source=notifications&email_token=AC5DGLKKFL6Y2IP2ZDHAG53RDMBX7A5CNFSM4KWWV242YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEL7YKPQ#issuecomment-587171134, or unsubscribe https://github.com/notifications/unsubscribe-auth/AC5DGLL5UVPIZ6K26ZQ5OPTRDMBX7ANCNFSM4KWWV24Q.

jdf76 avatar Feb 17 '20 21:02 jdf76

Either I need to 'reset access manager' and reconnect the 2 devices again as per the end of the official guide. Or I need to wait at least 30 minutes since creating new set of valid api credentials. Or I need to nuke my whole addon settings folder and then re-enter the credentials again so @jdf76 which of those is the right thing to do? A bit unclear as this thing is so complicated. Sorry I don't blame you for that... it's these convolutes youtube apis thing that makes it all such a PITA.

dreamcat4 avatar Feb 17 '20 22:02 dreamcat4

@dreamcat4 and others, No one has provided a log, but it seems likely that deleting userdata\addon_data\plugin.video.youtube\access_manager.json (make a backup first of course) while kodi isn't running should hopefully fix the 401 issue. Doing that you'll will have to re login / recreate any users.

@dontknowcris .apps.googleusercontent.com is always stripped by the add-on if it's included.

@lemn8 No

anxdpanic avatar Feb 17 '20 22:02 anxdpanic

it worked, yes!

dontknowcris avatar Feb 17 '20 22:02 dontknowcris

Using your own API keys is the only way to resolve this at this moment. For information on how to do this, see https://github.com/jdf76/plugin.video.youtube/wiki/Personal-API-Keys

For me it finally worked only after I created a completely new project and generated API/OAuth keys there. It was not enough to create new keys in an old project (from June 2017).

ytmytm avatar Feb 17 '20 22:02 ytmytm

@dreamcat4 and others, No one has provided a log, but it seems likely that deleting userdata\addon_data\plugin.video.youtube\access_manager.json (make a backup first of course) while kodi isn't running should hopefully fix the 401 issue. Doing that you'll will have to re login / recreate any users.

OK just tried that... Unfortunately whilst it stopped all the spamming of the settings page repeatedly. It has now meant that when I select 'Login / Sign in'.... Can enter 1 device code. Allow --> brings up 401 notification and settings page ONCE. Instead of what should be happening (which is to display the 2nd device access code).

And still signed out.

For me it finally worked only after I created a completely new project and generated API/OAuth keys there. It was not enough to create new keys in an old project (from June 2017).

That is what I just did already... deleted my old projects. Created a brand new project. Still cannot login / it's broken. What else must I do?

BTW this whole thing reminds me of the Vogon announcement from THGTTG:

People of Earth, your attention please,’

‘This is Prostetnic Vogon Jeltz of the Galactic Hyperspace Planning Council,’ the voice continued. ‘As you will no doubt be aware, the plans for development of the outlying regions of the Galaxy require the building of a hyperspatial express route through your star system, and regrettably your planet is one of those scheduled for demolition. The process will take slightly less than two of your Earth minutes. Thank you.’

Where Google = Vogons. In case you didn't think of it.

dreamcat4 avatar Feb 17 '20 22:02 dreamcat4

Finaly got it to work. Don't know where the error was, something with my old existing project in the Google API I guess.

  • Removed youtube plugin with all data from KODI via the KODI GUI.
  • removed directories on KODI box .kodi/userdata/addon_data/plugin.video.youtube .kodi/addons/plugin.video.youtube
  • Deleted my old project in Google API (I experimented with API keys before. You dont have to do this if you never registered an API key before.)
  • Created a new project in the Google API. (My old key I created for testing years ago didnt work, throwing the accessNotConfigured error.)
  • Generated Keys in the Google API
  • Reinstalled Youtube on KODI
  • Setup keys in api_keys.json
  • set youtube.allow.dev.keys to false in settings.xml
  • Rebooted my KODI box
  • Started Youtube addon
  • did the google.com/device setup twice
  • BAM! it works

what a ride.......

ron-1986 avatar Feb 17 '20 22:02 ron-1986

Can confirm the steps to add personal keys works. I created a brand new app and keys for this purpose.

I did run into issues with my FireTV where the api keys were getting overwritten every time I ran the plugin. But like others said, removing the plugin, wiping the directory where it stores all its settings, and reinstalling, worked.

If anyone needs to edit the key file on their FireTV: ES File Explorer>PC Browse==FTP access.

Coolisbetter avatar Feb 18 '20 02:02 Coolisbetter