[PLUGIN] YouTube2

This is the log with Bitrate set to 1080p in youtube2 and playing a youtube video "Haydn Die Schöpfung The Creation Hob. XXI:2-6of 8
http://logs.volumio.org/volumio/CxfvXdE.html

if it’s set to auto it would scale up if possible but so far as i know it’s always a bit rate of 160

Thank you - this is my observation, too and the reason of my post. The bitrate in youtube can be set but this has no influence to the avtual bitrate in Volumio+youtube2

is it still working? i m getting error no results…

Plugins working on Beta testing.
I don’t know why I can’t add a song to the queue just by clicking on the song directly. There are supposedly dots for the menu, but clicking on them shows nothing.
The problem occurs regardless of the volumio version.

I also have the same problem

@patrickkfkan maybe another update of the API?

There is definitely a problem!
Clicking on Youtube2 icon returns the error “No results”

Here is the log:
http://logs.volumio.org/volumio/djiGX5S.html

An extract:

Oct 31 16:36:28 volumio volumio[879]: info: [youtube2] InnertubeLoader: Auth instance created (status: signed in)
Oct 31 16:36:28 volumio volumio[879]: warn: [youtube2] Failed to get account config: Error: Request to https://www.youtube.com/youtubei/v1/account/accounts_list?prettyPrint=false&alt=json failed with status 400

Volumio 3.771
Yeah, yes, there is a problem.

I have 3 pi running volumio 3.757 with YouTube2 version1.2.2. They are all giving “Error No results”

Any solution or workaround?

Thanks

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?