[PLUGIN] YouTube2

I have noticed today that my youtube plugin does not work absolutely no access but I find here in the forum no solution there’s already a solution for it?

@Cologne
please stop cross-posting, it will not give a faster resolution.

Hi Guys i have instaled on RPI 4 8GBRAM Volumio new latest version
youtube cast recevier and youtube music ver 1.1.3. dont work
is there a problem again with Youtube Cast or…???
thx for

yeah its been a while that stopped working…

hope that Volumio solved that problem…

thats not volumio, its the plugins. most likely something changed on youtube…hopefully they fix it…

it’s not a volumio problem but most of the time a google change
and @patrickkfkan will always do his best to fix the changes.

@patrickkfkan it seems that all youtube plugins are having problems could you
look at it if you got the time and again tnx buddy for your great work :stuck_out_tongue:

These are always troublesome, just the nature of the beast. The only one I’ve found to be reliable is the older YouTube2 plugin. Have a go at installing that. Just search for the YouTube video within volumio and it will play a lot better.

which version? i think maybe the one that we could use our google dev account?
do you have the file of this version?

YouTube (Music) has undergone multiple changes that eventually broke the plugins. The most significant changes are:

  1. Playback. When YT detects direct mass downloads from their site, it will flag the originating IP address. When you try to play from a flagged IP address, you will need to provide a Proof of Origin Token in the streaming URL. This token is generated by satisfying a botguard challenge that is performed when you visit the YT site. The idea is that if you use an external program to download from YT, you won’t have this token and thus get a HTTP 403 error.
  2. Authentication. Previously, we have been able to sign in through a Device Code. This method obtains OAuth credentials that are used in outgoing requests - e.g. when browsing content. However, YT has now limited the OAuth credentials to YouTube TV requests only. When you browse content, you are not making TV but web requests, and so the requests get blocked with HTTP 400 Invalid Request error.

I have updated both YT and YT Music plugins to deal with the above issues:

  1. Playback. With aid of amazing projects like BgUtils, the plugins now utilize PO tokens. However, I have not been hit by the 403 playback error myself, so this needs to be tested by those who have.
  2. Authentication. SInce linking by Device Code no longer works, the plugins now use cookies instead. I have only just implemented this, so its reliability needs to be tested further.

Both YT and YT Music plugins are currently at v2.1.0. So why aren’t they showing up in Volumio? As some have noticed, they are being developed under the bookworm branch, which is the next OS version to be based upon by Volumio – and more importantly one that runs Node v20.x. As you might know, the YT plugins are based on a customized version of the YouTube.js library. A major customization is to make the library work in a Node v14 environment. But as YouTube.js and other dependencies advance to newer Node versions, it has become difficult and tedious for me to sort things out just to make things work in an environment that’s running an outdated Node version.

So this is the current state of things. Hopefully won’t be too long before the release of Bookworm-based Volumio. And hopefully before that, YouTube doesn’t go about making breaking changes again.

6 Likes

the plugins developer for bookworm won’t be shown on buster images, a new repo has been created for bookworm mostly because of the new node 20 that will be the default

unfortunately it might take a while to have bookworm promoted as stable, is there any chance you can update them for buster too, published on the buster plugin repo?

So this is how I should proceed

  • Install Debian version: 12 (bookworm)

  • Install Volumio 3.779

  • Install Youtube v2.1.0 Beta

  • ???

No. Volumio is a distro itself so you can’t install it like an app. Given the current situation, you would have to wait for Volumio to release a bookworm-based version.

Hello,

I hope someone can assist me with this Youtube2 issue I’ve been having lately.

After logging in in the app settings it shows me as just logged in, where earlier it would show my username as well. When I then go and try out the app I’m just met by a red box showing “Error. No results”.

If I log out it works fine, but then I don’t have my Youtube Premium advantages, history etc.

Anyone else with the same problem or maybe a solution?

Thank you a lot in advance

Mark

I’m having the same issue and have reverted to casting. I really miss being able to have a browser tab open and being able to manage mixing my local sources from my nas with YTM from a single interface. I hope someone fixes this. Is a roll back to a previous release a possible solution?

Please read above.

Is this issue fixed? If not any workarounds?

Thanks a lot for the explanation.
So any work around that I can try or signing out of YT Music is the only option?

I go to //volumiopc.local/dev and I clicked on the TRUE to enable plug test mode, then I restarted my Volumio OS but it does not show any new Youtube 2 plugins. It only shows version 2.1.1 and that version does not work anymore. SIGHHHH…this is so frustrating. All I want is to stream Youtube music in the very high quality that this plugin with Volumio offers, and it keeps breaking. So bummed out. :frowning: