[PLUGIN] YouTube for Volumio

Hi Michelangelo,

Would be great if it would be possible to fill in a private API key for those who did successfully create one.

Best Regards
Josef

I have a trouble with youtube, i’m already login with google account :frowning:

Any idea?
Screen Shot 2020-02-26 at 4.40.07 PM.png

Let us all know when the quote limit has been increased, or let us use our own API key.

following…

Hi Patrick,

So i finally understood, that google limits the requests…

Now it works !!! BUt the song are not played completly …

I used the Volumio Version volumio-2.668-2019-11-14-pi.img.zip and your newest zip: youtube-20191224.zip
1.
updates.volumio.org/pi/volumio/2 … pi.img.zip
2.
youtube-for-volumio-t6608-230.html#p70392

I believe that the newest plugin will also work with the newest volumio.

Copy the unzipped files from the USB Stick to the raspberry

sudo rsync -avx /media/RFRE/youu/ /home/volumio/volumio_youtube_install

Later you can delete the directory:

rm -rf /home/volumio/volumio_youtube_install

If the plugin already exist , you have to deinstall over the menu and reboot the raspberry:

volumio vrestart

Then install the plungin:

cd /home/volumio
mkdir volumio_youtube_install
cd volumio_youtube_install
volumio plugin install

Then open volumio system menu an configure the plugin:

My own keys:
Use Default: no
API Key:
AIzaSyBXn8lu6E0n6fVKc8lBD2UTD0_z4DsecS8
Client ID:
151796049040-mas8ocolp0j09eam6osltl22vp9o84j8.apps.googleusercontent.com
Client Secret
Bg6VVMSG9pOXdFaRWXW8zfP7

Then the app generates a access key for google ( youtube) like this “GGZ-YVQ-GTDF”

Open in your windows:
google.com/device

Enter the code,
ignore the warning, an open the last link “Extended…” or similar, then link to to my or your account.

Thanks a lot :sunglasses:

Unfortunately our request to google to raise the daily limits, resulted in the API key to be invalidated. This is because we are not allowed to use youtube API to play audio without showing the video.
Bummer.

We are however already looking for an alternative solution.

In the meanwhile we are removing the youtbe plugin from the repository, to avoid confusion of people installing it without it working.
As soon as this is solved we will add it again.

Anybody which want to jump in and help is more than welcome, contatct us via the support page (select business proposal):
volumio.org/contact/

NOTE: The code method and personal API solution are not viable, since they do require advanced skill (we want everybody to be able to enjoy it)

Ok Many thanks @michelangelo !
So, for those who want use the youtube plugin, they have to use the latest version given in this thread and use their own API key: right?

hi everybody

i have a problem with the creation of oauth id on the google developers console.
i follow the instructions in youtube-for-volumio-t6608-160.html
the problem is adding the scope …/auth/youtube.readonly’ needs google validation
and i don’t know what to put in

  • Authorized domains
  • Applications home link
  • Application Privacy Policy link

i create oauth id without …/auth/youtube.readonly but using the generate api key , client id and client secret don’t open the consent screen

thanks for your help

Plungin doesnt work for me. Error is lookink like “No result”
I’m already login with plugin 1.0.1 version.

Anyone have solve od this problem?
Screen Shot 2020-03-22 at 1.00.32 PM.png

You don’t have to send for verification. Just click “save”.

You have to use this plugin: https://forum.volumio.org/youtube-for-volumio-t6608-230.html#p70392. Uninstall the other then install this one.

Yes, I did it - it works. I picked up the versions - it works. I don’t touch the plug :slight_smile:

Same for me :smiley:

I did everything and now plugin works with my oauth.

But it stops playing song approximately in the half.

What i must to do?

Nice info:smiley::

Hi,

Same here, use my own API / credential, the tracks stop approximately at half, but if played again from playlist, it work till the end of the track.

Yeah I have some weird things like this.

1 Like

Hello,

i have installed youtube - Plugin from youtube-api-20191110.zip to use my own account created in Google Developer Console.
The plugin can access to my subscriptions, search and all work’s !
But i cannot hear anything. mpc print’s no play is in course.
The system is a Raspberry PI - 3 with hifiberry.

I have put an auth.json in plugin directory… with this contents:

{“volumio”:{
“client_id”:“xxxxxxxxxx”,
“project_id”:“xxxxxxxx”,
“auth_uri”:“xxxxxxxxx”,
“token_uri”:“xxxxxxxxx”,
“auth_provider_x509_cert_url”:“xxxxxxxxxxxxxxxxxx”,
“client_secret”:“xxxxxxxxxx”,
“redirect_uris”:[“http://127.0.0.1:9004”]}
}

but on WEB - API Plugin settings i set the API – Data too…
On system it write’s a file authToken.js…

What’s wrong ?
Thanks !

Thank you very much Patrick for all the effort to build that workaround. Basically I can connect now to youtube and all my channels and playlists are loaded and displayed. My major issue is that I can not playback the videos. The first frame is displayed but it can not be played. Is there any codec missing? I already played around with the buffer size, but I can not get it working. I use the USB 2.0 Interface.
Did someone face the same problem? Thanks again for the great support.

Hm, still not working / showing “No results”. :confused:

  • Uninstalled the stock version
  • volumio vrestart
  • manually installed the plugin from here, v. 0.1.0 from 24.12.2019
  • Had to abort using Ctrl + C since the installed asked on commandline about enabling the plugin with no obvious way to say yes.
  • volumio vrestart
  • Entered API-Key, Client-ID + -Secret