jdf76 / plugin.video.youtube

Kodi's Youtube Plugin -- Please Check the forums before submitting an issue
https://ytaddon.page.link/forum
392 stars 117 forks source link

Personal API Keys are required #736

Open feuille2lune opened 4 years ago

feuille2lune commented 4 years ago

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]

anxdpanic commented 4 years ago

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

feuille2lune commented 4 years ago

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

fabalu commented 4 years ago

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

feuille2lune commented 4 years ago

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...

anxdpanic commented 4 years ago

@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.

andy5macht commented 4 years ago

this really works. thank you for the workaround.

KG3RK3N commented 4 years ago

I have the same issue. Login doesn't work

Ditoxius commented 4 years ago

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

kylegordon commented 4 years ago

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

feuille2lune commented 4 years ago

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.|

wonder75 commented 4 years ago

Having the same issue @feuille2lune is having.

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<--

KG3RK3N commented 4 years ago

After about 30 min and a Kodi restart the login works

lemn8 commented 4 years ago

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.

feuille2lune commented 4 years ago

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

Ditoxius commented 4 years ago

I tried to update the Keys in my .json

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

Ditoxius commented 4 years ago

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

1 Try 100% error rate.

Anyone else?

ricardograca commented 4 years ago

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.

jdf76 commented 4 years ago

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 notifications@github.com 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.

dreamcat4 commented 4 years ago

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.

ricardograca commented 4 years ago

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

dontknowcris commented 4 years ago

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

lemn8 commented 4 years ago

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?

jdf76 commented 4 years ago

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 notifications@github.com 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.

dreamcat4 commented 4 years ago

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.

anxdpanic commented 4 years ago

@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

dontknowcris commented 4 years ago

it worked, yes!

ytmytm commented 4 years ago

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).

dreamcat4 commented 4 years ago

@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.

wonder75 commented 4 years ago

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

what a ride.......

Coolisbetter commented 4 years ago

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 commented 4 years ago

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

I was having a similar issue where my edits to the key file were being overwritten. I solved it by removing the plugin, deleting all the files in the plugin’s folder, then reinstalling which recreated the key file. Then I put in my keys in the key file and all is well

Ditoxius commented 4 years ago

So seems deleting the whole add-on and youtube project solved the issue for me.

I re-installed the addon and created a whole new google-project. After authentication I was able to log in to my Youtube-account via Kodi.

Thank you all :)

fabalu commented 4 years ago

Hy frend generate new api key! Works THx :)

kadogo commented 4 years ago

Hello, I'm also struggling a little with the personnal API key thing but reading the comments here it look like you need to sign in to make it work ?

Is there a way to work without to login with a youtube account ? (I first post my question in another issue yesterday https://github.com/jdf76/plugin.video.youtube/issues/735)

dreamcat4 commented 4 years ago

OK still not working for me. I might be guessing maybe that last time the 2nd code was not appearing because: the kodi youtube addon / kodi had taken it upon itself to overwrite the credentials inside api_keys.json. Which then made them invalid. Heh so this next time I follow the total wiping / nuklear option. And now I can finally get to see the 2nd access code for connecting device. I enter that code in google.com/device the 2nd time. And this is the last hurdle. And this bit is where it all falls apart for me now.

You see the final end of the guide says:

The second time you Connect a device, you will be prompted with:

This app isn't verified This app hasn't been verified by Google yet. Only proceed if you know and trust the developer.

From there clicking Advanced and Go to (unsafe) allows you to complete the process.

Well the URL pointed to by that last link is Go to YouTube Add-on - Personal (unsafe)

This then does not redirect me to 'wherever it is' that I need to go to complete the final part of the process. I literally have no instructions to follow there where it is to unblock that.

So still cannot sign in... and heh it also automatically overwrited the stuff in api_keys.json yet again.... so they are no long what was told us to put there in the instructions. Surely theres gotta be a better way to do all this? I would say this addon is doing a complicated thing in a too complex way. And it's got some bugs in it that it ends up adding something extra to the difficulties which google already made us jump through hoops for. Still cannot use. Totally broke. In fact this whole thing (personal api keys feature) has been broken for me for months now.

Did follow all instructions 100% as is written at... https://github.com/jdf76/plugin.video.youtube/wiki/Personal-API-Keys so then I follow these ones https://github.com/jdf76/plugin.video.youtube/issues/736#issuecomment-587179143 clearly there is something lacking / missing here. And it isn't the user at fault this time. P.S. my addon version says '6.6.0' this is on Kodi 18.5 2019-11-17 linux.

feuille2lune commented 4 years ago

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

* removed directories on KODI box
  .kodi/userdata/addon_data/plugin.video.youtube
  .kodi/addons/plugin.video.youtube

* Created a new project in the Google API (used formerly my old one i created for testing years ago)

* 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.......

I tried this way and all this way and it still doesn't work at all. Still the same symptome, we miss something.

Milliw commented 4 years ago

Hi there!

Isn´t it possible to "just" swap out the api key that is "bundled" with this add-on instead of everyone having to use his own one? I don´t need to use login function - just want to play videos by the sharing function of my Android app (NewPipe).

feuille2lune commented 4 years ago

Forth try and it worked, I had to delete all my project and create a new one several time to make it run.

virtualdreams commented 4 years ago

On LibreELEC:

wonder75 commented 4 years ago

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

* removed directories on KODI box
  .kodi/userdata/addon_data/plugin.video.youtube
  .kodi/addons/plugin.video.youtube

* Created a new project in the Google API (used formerly my old one i created for testing years ago)

* 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.......

I tried this way and all this way and it still doesn't work at all. Still the same symptome, we miss something.

Sorry, I forgot to write down, that I deleted my old existing project in the API as well. Thought it wouldn't matter. Updated my earlier post. Glad to see that it's working for you now.

lemn8 commented 4 years ago

Hi there!

Isn´t it possible to "just" swap out the api key that is "bundled" with this add-on instead of everyone having to use his own one? I don´t need to use login function - just want to play videos by the sharing function of my Android app (NewPipe).

I'm not a programmer but why dont fork this project and swap the key yourself in youtube_authentication.py youtube_registration.py and see if it works?

anxdpanic commented 4 years ago

@MarcoWilli and @lemn8 Using your own keys is the only solution. If I add a new api key set or you share keys, it's limited to 100 logins (which would be used up in hours) with a very small quota, and then will end up disabled/removed as well.

lemn8 commented 4 years ago

@anxdpanic Ok thanks for clarifying. @MarcoWilli So you could still create it for your personal use internet share repo you use for your family which i mapped in each kodi devices resource. @jdf76 i'm sorry you only hear when something is wrong. That's why i wanna say thank you for all your time you put into this i really enjoy this craftsmanship!

anxdpanic commented 4 years ago

Sorry to everyone, I understand this issue is a pita.

The problem here; The add-on would have to be verified/validated to resolve the issue. But it is unlikely this will be able to be fixed, though not 100% given up on. In order for this add-on to be compliant for verification/validation, My Subscriptions, Saved Playlists, Purchases would have to be removed(they are going to be crippled/removed soon as well since youtube.com/tv is being discontinued), and so would playback... and the add-on isn't very useful without playback. Other minor things would also need to changed as well, but the lack of playback is the main hurdle.

Using your own API keys, you should be able to use the add-on for a long while before having to deal with this again(unless Google/YouTube changes their API related stuff again).

Note: I also suspect there is something in the add-on that needs to be resolved which is causing the restart to be required. I am currently sick but will look into that next chance I have.

jdf76 commented 4 years ago

Honestly @anxdpanic has been the go to guy with this project. I was helping him out when I could.

Jeff

On Feb 18, 2020, at 4:06 PM, lemn8 notifications@github.com wrote:

@anxdpanic https://github.com/anxdpanic Ok thanks for clarifying. @MarcoWilli https://github.com/MarcoWilli So you could still create it for your personal use internet share repo you use for your family which i mapped in each kodi devices resource. @jdf76 https://github.com/jdf76 i'm sorry you only hear when something is wrong. That's why i wanna say thank you for all your time you put into this i really enjoy this craftsmanship!

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

lemn8 commented 4 years ago

@jdf76 haha and you thnx for clearing that up. I thought your name is in the github link which made me assume you were the owner. Sorry!. Still big thanks though! @anxdpanic read the above lol, this was mend for you. This seems to be the first big struggle before this when i experienced a bug there already was a beta compiled which fixed it! So Thanks. The only struggle you need to deal with this moment is your health. Get well soon and take your time you don't owe us anything no stress!

wonder75 commented 4 years ago

@jdf76 @anxdpanic A big thanks for the plugin from me as well. Have been using it every day for years. Really sad it has to end this way. Maybe going the path "Newpipe" is going could work for a revival. As I understand Newpipe just parses the website via HTTP to get the content and manages it's own local subscriptions. https://newpipe.schabi.org/ It works pretty well and as it is Open Source most of the work might be done already.

Anyway I am glad it still works for me with my own API key but I guess the majority of users will be lost in the progress of making this work.

chris42 commented 4 years ago

Possibly a mid way in between would be to now switch the API credentials into a settings dialog, making it easier for everyone to put on in.

anxdpanic commented 4 years ago

Not sure what you are suggesting? You can add the keys in Settings dialog under API, you can enable the web page and add them, you can add it to the settings.xml or api_keys.json. You can also send text to Kodi using a remote app or using the web interface.

chris42 commented 4 years ago

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

* removed directories on KODI box
  .kodi/userdata/addon_data/plugin.video.youtube
  .kodi/addons/plugin.video.youtube

* Created a new project in the Google API (used formerly my old one i created for testing years ago)

* 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.......

I tried this way and all this way and it still doesn't work at all. Still the same symptome, we miss something.

Sorry, I forgot to write down, that I deleted my old existing project in the API as well. Thought it wouldn't matter. Updated my earlier post. Glad to see that it's working for you now.

Sorry, reading the above I thought there is no way to set the api in settings? Why did no one did it the easy way?