[PLUGIN] YouTube2

Made an account and came here just to post this: Youtube Music plugin works for me on version 1.1.3 IF I DON’T SIGN IN.

Yes, I don’t have access to my playlists and favorites and history and all that. No, I can’t control every little setting the same way I can when I’m logged in. But you know what I can do? Listen to music. And that’s why I built this thing in the first place. I’m appreciative that someone is working on this in the background, and as someone who works in IT and routinely deals with cloud-provided services just changing things on me ALL THE FREAKING TIME, its just something that comes with the territory.

SUPER,YouTube2 v1.3.1we are on the right track !!!,
but I have no access to my playlists, history.

now it works again on beta versions using cookies if you need the playlists also…

Hi :wave:t3: Casting stopped working for me. It does connect to the service but it refuses to play from YT and YTMusic plugin version 1.1.2

Tried to put the plugin test mode on true and restarted, but this will not give me any other versions I already have.

Uninstalled the YT casting plugin, restarted and installed v1.1.2 again.

In the logging I see eventually: error: Cannot update RT Device info: Error: Reference.set failed: first argument contains undefined in property ‘user_devices.###.stack.track’

UPnP client error: Error: this socket has been ended by the other party

Running Volumio version 3.782 on a Virtuoso license.

Other thing I see is a PlayerError: failed to extract signature decipher algorithm
And an Error: [ytcr] Error in videoloader.getInfo(##)
Error: Unexpected token (1:71)

I am able to cast from the same device and app to the Wiim Ultra.

1 Like

Hello :slight_smile:

The youtube2 plugin has stopped working for me in the last week or so.
I tried to uninstall/install it but nothing changed.
The UI appears to work and I am able to search for content but when I click on the video to play nothing happens.
Looking at the log I can see that every time I select an item to play I get this exception

info: [youtube2-play] clearAddPlayTrack: youtube2/video@endpoint:o=%7B%22type%22%3A%22watch%22%2C%22payload%22%3A%7B%22videoId%22%3A%22k1-TrAvp_xs%22%2C%22params%22%3A%22qgMGbW96YXJ0ugMKCNCK34Srk8XeRboDCwjfxcqYtqeIpYkBugMKCPP87ui1-ZCGRLoDCgjEq8KFmNjevEC6AwsI-7P_waOUwP67AboDCwjkp4_zk9bgks0BugMKCPGLv9H-r-7JbLoDCgiy97D16JTc0H26AwoI7bb2z-mFm7lQugMPEg1SRFJiMFVtckNYeFZBugMKCJeXteyH7vCMD7oDCgiTxOynw-2s2hq6AwsIwpvNnNvj36HRAboDCgiRibXP1Nv-n2G6AwsIraOH27OtxoTcAboDCgjxwsqBkYHl6QG6AwoI-evckJj2k-gtugMKCO-b4Y_E4__cA7oDCwj41oqv8aqezp0B8gMFDRjn2z6CBAIQAQ%253D%253D%22%7D%7D@explodeTrackData:o=%7B%22title%22%3A%22Mozart%20-%20Lacrimosa%22%2C%22artist%22%3A%22Rosa%20Music%22%2C%22albumart%22%3A%22https%3A%2F%2Fi.ytimg.com%2Fvi%2Fk1-TrAvp_xs%2Fhq720.jpg%3Fsqp%3D-oaymwEcCNAFEJQDSFXyq4qpAw4IARUAAIhCGAFwAcABBg%3D%3D%26rs%3DAOn4CLAKM5iogqZR9HYjDb9UoeKzqyjExw%22%2C%22endpoint%22%3A%7B%22type%22%3A%22watch%22%2C%22payload%22%3A%7B%22videoId%22%3A%22k1-TrAvp_xs%22%2C%22params%22%3A%22qgMGbW96YXJ0ugMKCNCK34Srk8XeRboDCwjfxcqYtqeIpYkBugMKCPP87ui1-ZCGRLoDCgjEq8KFmNjevEC6AwsI-7P_waOUwP67AboDCwjkp4_zk9bgks0BugMKCPGLv9H-r-7JbLoDCgiy97D16JTc0H26AwoI7bb2z-mFm7lQugMPEg1SRFJiMFVtckNYeFZBugMKCJeXteyH7vCMD7oDCgiTxOynw-2s2hq6AwsIwpvNnNvj36HRAboDCgiRibXP1Nv-n2G6AwsIraOH27OtxoTcAboDCgjxwsqBkYHl6QG6AwoI-evckJj2k-gtugMKCO-b4Y_E4__cA7oDCwj41oqv8aqezp0B8gMFDRjn2z6CBAIQAQ%253D%253D%22%7D%7D%7D
error: [youtube2] Error in VideoModel.getInfo(k1-TrAvp_xs):  Unexpected token (1:71) Error: Unexpected token (1:71)
    at Jinter.evaluate (/data/plugins/music_service/youtube2/node_modules/volumio-youtubei.js/bundle/node.cjs:30529:13)
    at Object.evaluate [as eval] (/data/plugins/music_service/youtube2/node_modules/volumio-youtubei.js/bundle/node.cjs:36917:26)
    at Player.decipher (/data/plugins/music_service/youtube2/node_modules/volumio-youtubei.js/bundle/node.cjs:31212:39)
    at Format.decipher (/data/plugins/music_service/youtube2/node_modules/volumio-youtubei.js/bundle/node.cjs:20915:19)
    at VideoModel._VideoModel_chooseFormat (/data/plugins/music_service/youtube2/dist/lib/model/VideoModel.js:86:39)
    at VideoModel.getPlaybackInfo (/data/plugins/music_service/youtube2/dist/lib/model/VideoModel.js:69:116)
    at runMicrotasks ()
    at processTicksAndRejections (internal/process/task_queues.js:93:5)
    at async Function.getPlaybackInfoFromUri (/data/plugins/music_service/youtube2/dist/lib/controller/play/PlayController.js:167:19)
    at async PlayController.clearAddPlayTrack (/data/plugins/music_service/youtube2/dist/lib/controller/play/PlayController.js:89:49)

I am running Volumio 3.782 with youtube2 plugin version 1.31 on a raspberry pi 400.
“Help me Obi Wan Kenobi, you’re my only hope!” :smiley:

p.s. please let me know if you need any more info :slight_smile:

volumio_log_youtube2_not working.txt (27.2 KB)

It’s not just you, they changed something again… google and youtube… it’s terrible…

Check by trying to add the cookie again. In plugin settings. Works for me.

Hi,

I am new to Volumio, fresh install youtube2 and youtube music on my rpi4b with hifiberry spdif hat (latest volumio 3.779). Login with cookie is working, I can browse videos but can not play any video in youtube2, just got this error msg:

Some other interesting things: On the plugin manager under the youtube2, it shows version:1.3.1 But I am using the latest version so the new cookie login method in it.
Also the update button is active, I click it, run an install cycle and the update button still there like an infinite cycle.

What I tried: Many restart, many plugin reinstall, with or without login, plugin test mode activated.
Same issue with youtube music.

I have updated both YT and YT Music plugins. They’re just not showing up in the plugin store :man_shrugging: .

YT v1.3.2
YT Music v1.2.1

Any lower version will not work.

2 Likes

Same for the YT cast plugin, or is that a different thing?

YT uninstalled, plugins test mode set to true.
YT2 Pluging is 1.3.2 press on details no beta 1.3.2 comes.

Only 1.3.1 is installed.

@balbuze , please check why YT and YT Music plugins (beta ver) not showing up. Thx.

Edit: seems YT made some changes again. Will update.

Edit 2: Updated YT v1.3.3 and YT Music v1.2.2.

1 Like

Thanks @patrickkfkan I know this is somewhat thankless work! It’s so frustrating that YouTube keeps pulling this BS. I have 3 Volumio setup. One in my workshop, one in my main listening area and one in my bedroom. With your work I have a seamless way to manage my music subscription my 3tb of lossless music. YouTube just keeps ruining it! I use ytm because I pay for YouTube premium and the combo of no ads on YouTube and access to what used to be google play music is pretty great for the price. Their crap maintenance of their api is frustrating as hell as it keeps ruining my setup. Anyways, thanks again and I’ll look for the plugins in the plug-in interface when the issue of them showing up is resolved.

Should be ok as stable Youtube2 v1.3.3 now!
But you may have to remove previous, reboot and install.

I have the same issue.
I have 1.3.3. Installed

Did you reboot after installing the plugin?

v1.3.3 should work, so I need logs to see what’s going on.

everything is working fine for me with the youtube music plugin.

yeah now everything works fine. only youtube cast is not working but i guess thats different…

I tried all steps again.
En saved another cookie string and it works!

Thx for your great job!

Thx for your great job!
it works!

The beta YT cast receiver 1.2.0 is available (in test mode) and works like a charm! :muscle:t3::raised_hands:t3: