[PLUGIN] YouTube2

Same here

same here can seach everything but when i say play it is just doing nothing no error nothing. hope patrickkfkan, can make a fix for this. @patrickkfkan when you need somthing ask :slight_smile:

LOG:
error: [youtube2] Error in VideoModel.getInfo(CRaTXSxHcNQ): l[…] is not a function Error: l[…] is not a function
at CallExpression._CallExpression_throwError (/data/plugins/music_service/youtube2/node_modules/volumio-youtubei.js/bundle/node.cjs:397:11)
at CallExpression.run (/data/plugins/music_service/youtube2/node_modules/volumio-youtubei.js/bundle/node.cjs:379:98)
at Visitor.visitNode (/data/plugins/music_service/youtube2/node_modules/volumio-youtubei.js/bundle/node.cjs:1018:23)
at MemberExpression.run (/data/plugins/music_service/youtube2/node_modules/volumio-youtubei.js/bundle/node.cjs:645:30)
at Visitor.visitNode (/data/plugins/music_service/youtube2/node_modules/volumio-youtubei.js/bundle/node.cjs:1018:23)
at /data/plugins/music_service/youtube2/node_modules/volumio-youtubei.js/bundle/node.cjs:374:67
at Array.map ()
at CallExpression.run (/data/plugins/music_service/youtube2/node_modules/volumio-youtubei.js/bundle/node.cjs:374:41)
at Visitor.visitNode (/data/plugins/music_service/youtube2/node_modules/volumio-youtubei.js/bundle/node.cjs:1018:23)
at SequenceExpression.run (/data/plugins/music_service/youtube2/node_modules/volumio-youtubei.js/bundle/node.cjs:744:29)

hope you can uncijfer what is going rong here

have a nice day all

I resolved the issue where youtube2 wasn’t playing music even though I had successfully logged in, and could search and display song catalogs. The problem was fixed by performing a Factory Reset, which returned Volumio to its original state, then reinstalling the youtube2 plugin from scratch. Besides this method, I had tried other approaches like updating the cookie, uninstalling and reinstalling youtube2, but none of them solved the problem.

I’m using Volumio version 4.028 and youtube2 version 2.3.5. After performing a factory reset and reinstalling Youtube2, it started working again.

He fixed it already with the update

Thanks
@patrickkfkan

Greats

No factory reset needed just updated the plugin

The problem is youtube / google the change things to often

this is my log
https://logs.volumio.org/volumio/VeCmZ9C.html
Youtube2 error again now

Same here

So do you need volumio and or the plug-in in test mode? Too many variables, also we were told to uninstall YouTube2 if you wanted to use cast to YouTube, neither really work anymore. YT2 was the best and easiest, just had to search for the exact video within volumio.

PS. When I tried a while ago I couldn’t even find the cookie or didn’t work with chrome. May have to download Firefox I guess.

Yes. This is how it looks like when i try to enter to the ā€œDetailsā€



error: [youtube2] getUIConfig(): Cannot populate YouTube2 configuration: Cannot convert argument to a ByteString because the character at index 512 has a value of 8230 which is greater than 255. TypeError: Cannot convert argument to a ByteString because the character at index 512 has a value of 8230 which is greater than 255.
    at webidl.converters.ByteString (/data/plugins/music_service/youtube2/node_modules/undici/lib/web/fetch/webidl.js:460:13)
    at Headers.set (/data/plugins/music_service/youtube2/node_modules/undici/lib/web/fetch/headers.js:493:31)
    at HTTPClient.fetch (/data/plugins/music_service/youtube2/node_modules/volumio-youtubei.js/bundle/node.cjs:9007:25)
    at Actions.execute (/data/plugins/music_service/youtube2/node_modules/volumio-youtubei.js/bundle/node.cjs:30128:46)
    at _NavigationEndpoint.call (/data/plugins/music_service/youtube2/node_modules/volumio-youtubei.js/bundle/node.cjs:12031:22)
    at AccountManager.getInfo (/data/plugins/music_service/youtube2/node_modules/volumio-youtubei.js/bundle/node.cjs:35517:59)
    at getAccountInitialInfo (/data/plugins/music_service/youtube2/dist/lib/model/AccountModelHelper.js:48:46)
    at InnertubeLoader._InnertubeLoader_recreateWithPOToken (/data/plugins/music_service/youtube2/dist/lib/model/InnertubeLoader.js:77:78)
    at InnertubeLoader._InnertubeLoader_createInstance (/data/plugins/music_service/youtube2/dist/lib/model/InnertubeLoader.js:153:95)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

Updated the following plugins for Volumio Bookworm:

  1. YouTube2 v2.4.0
  2. YouTube Music v2.4.0
  3. YouTube Cast Receiver v2.1.0

They are currently in beta channel.

I’ve added a disclaimer to these plugins which you need to accept before you can use them. You can do this in the plugin settings. The purpose of the disclaimer is to make sure the users are aware that the plugins need to run code obtained from Google servers, and the risks this entails. The risk is lower on PCs (x64) because Deno is used to sandbox the executed code, but on RPis Deno is not available to provide sandboxing (unless Volumio decides to progress to 64-bit for their base platform).

3 Likes

thank you! finally youtube2 working again

@patrickkfkan , first of all thx for the update can you ore anybody els tell me a little bit more about the disclaimer, what are the risk in this case, will google be able to do ? ore ? thx inreturn

On PC version, Google would be able to:

  • read files under /data/plugins/music_service/youtube2/node_modules/volumio-yt-support/
  • make network requests
  • access the PATH environment variable of your system

That’s about it given my understanding of Deno’s default permissions . But for the RPi version – and basically any platform that is not 64-bit x86 / ARM, it can do pretty much anything it wants.

thx for you reply

Thanks again.

Working again.

Hello There,
I’ve been trying to get the Beta Channel to show up.
I tried enabling it via http://volumio.local/dev and also through SSH.
SSH reports that it’s enabled, but I still don’t see any Beta Channel under http://volumio.local/plugin-manager.

the latest version 2.4.0 has been promoted to stable, please try again

Still
Youtube2 1.4.2
Youtube Cast Receiver 1.2.0
Youtube Music 1.3.1
…

Im on a RasperryPi 4 8GB Model.
System Version 3.866

The developer stopped supporting YouTube plugins on Volumio3 (buster).

The up-to-date versions are available only on Volumio4 (bookworm)