[PLUGIN] YouTube2

Updated v1.2.2, which should fix the playback and sign-in issues (latter needs more testing though).

Currently in beta channel, which you can install as follows:

  • Uninstall current version.
  • Enable “Plugins Test Mode” in http://<volumio address>/dev
  • Find the YouTube2 plugin in the plugin store. Click the Details button under it and choose latest beta version to install.
  • Restart Volumio.

(All steps mandatory)

1 Like

Many 1000 thx Patrick!

With V1.2.2 the plugin is running again.

Your response time on issues is best in class!!!

Nice that we have you, that you always provide us with this plugin with new beta version and that happens within hours .always winning the battle against youtube or Google.
Beta 1.2.2 ok

1 Like

System: 3.742
Plugin: 1.2.2

I got that error:

Starting Live Log...
process exited with code null    at Parser.parse (/data/plugins/music_service/youtube2/node_modules/acorn/dist/acorn.js:593:17)
    at Function.parse (/data/plugins/music_service/youtube2/node_modules/acorn/dist/acorn.js:643:37)
    at parse (/data/plugins/music_service/youtube2/node_modules/acorn/dist/acorn.js:5942:19)
    at new Jinter (/data/plugins/music_service/youtube2/node_modules/jintr/bundle/jinter.cjs:999:44)
    at Object.evaluate [as eval] (/data/plugins/music_service/youtube2/node_modules/volumio-youtubei.js/bundle/node.cjs:21633:19)
info: CALLMETHOD: system_controller system enableLiveLog true
info: CoreCommandRouter::executeOnPlugin: system , enableLiveLog
info: Launching a new LiveLog session
info: Killing previous LiveLog session
info: Live Log process terminated: null
info: Preload queue cleared
info: CoreCommandRouter::volumioReplaceandPlayItems
info: CoreStateMachine::ClearQueue
info: CoreStateMachine::stop
info: CoreStateMachine::setConsumeUpdateService undefined
info: CorePlayQueue::clearPlayQueue
info: CorePlayQueue::saveQueue
info: CoreCommandRouter::volumioPushQueue
info: CoreStateMachine::addQueueItems
info: CorePlayQueue::addQueueItems
info: Preload queue cleared
info: Adding Item to queue: youtube2/video@explodeTrackData:o=%7B%22title%22%3A%22Invidia%20del%20Peneguzzi%22%2C%22artist%22%3A%22J-Ax%22%2C%22albumart%22%3A%22https%3A%2F%2Fi.ytimg.com%2Fvi%2F4RlXkF5Z6fY%2Fhq720.jpg%3Fsqp%3D-oaymwE2CNAFEJQDSFXyq4qpAygIARUAAIhCGAFwAcABBvABAfgB_gmAAtAFigIMCAAQARhFIDMofzAP%26rs%3DAOn4CLCAoDue6Xv7_OJpwPb0-F2GGRpapg%22%2C%22endpoint%22%3A%7B%22type%22%3A%22watch%22%2C%22payload%22%3A%7B%22videoId%22%3A%224RlXkF5Z6fY%22%7D%7D%7D
info: Using cached record of: youtube2/video@explodeTrackData:o=%7B%22title%22%3A%22Invidia%20del%20Peneguzzi%22%2C%22artist%22%3A%22J-Ax%22%2C%22albumart%22%3A%22https%3A%2F%2Fi.ytimg.com%2Fvi%2F4RlXkF5Z6fY%2Fhq720.jpg%3Fsqp%3D-oaymwE2CNAFEJQDSFXyq4qpAygIARUAAIhCGAFwAcABBvABAfgB_gmAAtAFigIMCAAQARhFIDMofzAP%26rs%3DAOn4CLCAoDue6Xv7_OJpwPb0-F2GGRpapg%22%2C%22endpoint%22%3A%7B%22type%22%3A%22watch%22%2C%22payload%22%3A%7B%22videoId%22%3A%224RlXkF5Z6fY%22%7D%7D%7D
info: CoreCommandRouter::volumioPushQueue
info: CorePlayQueue::saveQueue
info: CoreStateMachine::updateTrackBlock
info: CorePlayQueue::getTrackBlock
info: CoreCommandRouter::volumioPlay
info: CoreStateMachine::play index 0
info: CoreStateMachine::setConsumeUpdateService undefined
info: CoreStateMachine::stop
info: CoreStateMachine::setConsumeUpdateService undefined
info: CoreStateMachine::play index undefined
info: CoreStateMachine::setConsumeUpdateService undefined
info: CorePlayQueue::getTrack 0
info: CoreStateMachine::startPlaybackTimer
info: CorePlayQueue::getTrack 0
info: [youtube2-play] clearAddPlayTrack: youtube2/video@endpoint:o=%7B%22type%22%3A%22watch%22%2C%22payload%22%3A%7B%22videoId%22%3A%224RlXkF5Z6fY%22%7D%7D@explodeTrackData:o=%7B%22title%22%3A%22Invidia%20del%20Peneguzzi%22%2C%22artist%22%3A%22J-Ax%22%2C%22albumart%22%3A%22https%3A%2F%2Fi.ytimg.com%2Fvi%2F4RlXkF5Z6fY%2Fhq720.jpg%3Fsqp%3D-oaymwE2CNAFEJQDSFXyq4qpAygIARUAAIhCGAFwAcABBvABAfgB_gmAAtAFigIMCAAQARhFIDMofzAP%26rs%3DAOn4CLCAoDue6Xv7_OJpwPb0-F2GGRpapg%22%2C%22endpoint%22%3A%7B%22type%22%3A%22watch%22%2C%22payload%22%3A%7B%22videoId%22%3A%224RlXkF5Z6fY%22%7D%7D%7D
info: Preload queue cleared
info: CoreCommandRouter::volumioReplaceandPlayItems
info: CoreStateMachine::ClearQueue
info: CoreStateMachine::stop
info: CoreStateMachine::setConsumeUpdateService undefined
info: CorePlayQueue::clearPlayQueue
info: CorePlayQueue::saveQueue
info: CoreCommandRouter::volumioPushQueue
info: CoreStateMachine::addQueueItems
info: CorePlayQueue::addQueueItems
info: Preload queue cleared
info: Adding Item to queue: youtube2/video@explodeTrackData:o=%7B%22title%22%3A%22Invidia%20del%20Peneguzzi%22%2C%22artist%22%3A%22J-Ax%22%2C%22albumart%22%3A%22https%3A%2F%2Fi.ytimg.com%2Fvi%2F4RlXkF5Z6fY%2Fhq720.jpg%3Fsqp%3D-oaymwE2CNAFEJQDSFXyq4qpAygIARUAAIhCGAFwAcABBvABAfgB_gmAAtAFigIMCAAQARhFIDMofzAP%26rs%3DAOn4CLCAoDue6Xv7_OJpwPb0-F2GGRpapg%22%2C%22endpoint%22%3A%7B%22type%22%3A%22watch%22%2C%22payload%22%3A%7B%22videoId%22%3A%224RlXkF5Z6fY%22%7D%7D%7D
info: Using cached record of: youtube2/video@explodeTrackData:o=%7B%22title%22%3A%22Invidia%20del%20Peneguzzi%22%2C%22artist%22%3A%22J-Ax%22%2C%22albumart%22%3A%22https%3A%2F%2Fi.ytimg.com%2Fvi%2F4RlXkF5Z6fY%2Fhq720.jpg%3Fsqp%3D-oaymwE2CNAFEJQDSFXyq4qpAygIARUAAIhCGAFwAcABBvABAfgB_gmAAtAFigIMCAAQARhFIDMofzAP%26rs%3DAOn4CLCAoDue6Xv7_OJpwPb0-F2GGRpapg%22%2C%22endpoint%22%3A%7B%22type%22%3A%22watch%22%2C%22payload%22%3A%7B%22videoId%22%3A%224RlXkF5Z6fY%22%7D%7D%7D
info: CoreCommandRouter::volumioPushQueue
info: CorePlayQueue::saveQueue
info: CoreStateMachine::updateTrackBlock
info: CorePlayQueue::getTrackBlock
info: CoreCommandRouter::volumioPlay
info: CoreStateMachine::play index 0
info: CoreStateMachine::setConsumeUpdateService undefined
info: CoreStateMachine::stop
info: CoreStateMachine::setConsumeUpdateService undefined
info: CoreStateMachine::play index undefined
info: CoreStateMachine::setConsumeUpdateService undefined
info: CorePlayQueue::getTrack 0
info: CoreStateMachine::startPlaybackTimer
info: CorePlayQueue::getTrack 0
info: [youtube2-play] clearAddPlayTrack: youtube2/video@endpoint:o=%7B%22type%22%3A%22watch%22%2C%22payload%22%3A%7B%22videoId%22%3A%224RlXkF5Z6fY%22%7D%7D@explodeTrackData:o=%7B%22title%22%3A%22Invidia%20del%20Peneguzzi%22%2C%22artist%22%3A%22J-Ax%22%2C%22albumart%22%3A%22https%3A%2F%2Fi.ytimg.com%2Fvi%2F4RlXkF5Z6fY%2Fhq720.jpg%3Fsqp%3D-oaymwE2CNAFEJQDSFXyq4qpAygIARUAAIhCGAFwAcABBvABAfgB_gmAAtAFigIMCAAQARhFIDMofzAP%26rs%3DAOn4CLCAoDue6Xv7_OJpwPb0-F2GGRpapg%22%2C%22endpoint%22%3A%7B%22type%22%3A%22watch%22%2C%22payload%22%3A%7B%22videoId%22%3A%224RlXkF5Z6fY%22%7D%7D%7D
error: [youtube2] Error in VideoModel.getInfo(4RlXkF5Z6fY):  Unexpected token (1:47) SyntaxError: Unexpected token (1:47)
    at Parser.pp$4.raise (/data/plugins/music_service/youtube2/node_modules/acorn/dist/acorn.js:3553:15)
    at Parser.pp$9.unexpected (/data/plugins/music_service/youtube2/node_modules/acorn/dist/acorn.js:764:10)
    at Parser.pp$9.semicolon (/data/plugins/music_service/youtube2/node_modules/acorn/dist/acorn.js:741:68)
    at Parser.pp$8.parseVarStatement (/data/plugins/music_service/youtube2/node_modules/acorn/dist/acorn.js:1178:10)
    at Parser.pp$8.parseStatement (/data/plugins/music_service/youtube2/node_modules/acorn/dist/acorn.js:919:19)
    at Parser.pp$8.parseBlock (/data/plugins/music_service/youtube2/node_modules/acorn/dist/acorn.js:1246:23)
    at Parser.pp$5.parseFunctionBody (/data/plugins/music_service/youtube2/node_modules/acorn/dist/acorn.js:3374:24)
    at Parser.pp$8.parseFunction (/data/plugins/music_service/youtube2/node_modules/acorn/dist/acorn.js:1368:10)
    at Parser.pp$8.parseFunctionStatement (/data/plugins/music_service/youtube2/node_modules/acorn/dist/acorn.js:1062:17)
    at Parser.pp$8.parseStatement (/data/plugins/music_service/youtube2/node_modules/acorn/dist/acorn.js:907:19)
    at Parser.pp$8.parseTopLevel (/data/plugins/music_service/youtube2/node_modules/acorn/dist/acorn.js:821:23)
    at Parser.parse (/data/plugins/music_service/youtube2/node_modules/acorn/dist/acorn.js:593:17)
    at Function.parse (/data/plugins/music_service/youtube2/node_modules/acorn/dist/acorn.js:643:37)
    at parse (/data/plugins/music_service/youtube2/node_modules/acorn/dist/acorn.js:5942:19)
    at new Jinter (/data/plugins/music_service/youtube2/node_modules/jintr/bundle/jinter.cjs:999:44)
    at Object.evaluate [as eval] (/data/plugins/music_service/youtube2/node_modules/volumio-youtubei.js/bundle/node.cjs:21633:19)
error: [youtube2] Error in VideoModel.getInfo(4RlXkF5Z6fY):  Unexpected token (1:47) SyntaxError: Unexpected token (1:47)
    at Parser.pp$4.raise (/data/plugins/music_service/youtube2/node_modules/acorn/dist/acorn.js:3553:15)
    at Parser.pp$9.unexpected (/data/plugins/music_service/youtube2/node_modules/acorn/dist/acorn.js:764:10)
    at Parser.pp$9.semicolon (/data/plugins/music_service/youtube2/node_modules/acorn/dist/acorn.js:741:68)
    at Parser.pp$8.parseVarStatement (/data/plugins/music_service/youtube2/node_modules/acorn/dist/acorn.js:1178:10)
    at Parser.pp$8.parseStatement (/data/plugins/music_service/youtube2/node_modules/acorn/dist/acorn.js:919:19)
    at Parser.pp$8.parseBlock (/data/plugins/music_service/youtube2/node_modules/acorn/dist/acorn.js:1246:23)
    at Parser.pp$5.parseFunctionBody (/data/plugins/music_service/youtube2/node_modules/acorn/dist/acorn.js:3374:24)
    at Parser.pp$8.parseFunction (/data/plugins/music_service/youtube2/node_modules/acorn/dist/acorn.js:1368:10)
    at Parser.pp$8.parseFunctionStatement (/data/plugins/music_service/youtube2/node_modules/acorn/dist/acorn.js:1062:17)
    at Parser.pp$8.parseStatement (/data/plugins/music_service/youtube2/node_modules/acorn/dist/acorn.js:907:19)
    at Parser.pp$8.parseTopLevel (/data/plugins/music_service/youtube2/node_modules/acorn/dist/acorn.js:821:23)
    at Parser.parse (/data/plugins/music_service/youtube2/node_modules/acorn/dist/acorn.js:593:17)
    at Function.parse (/data/plugins/music_service/youtube2/node_modules/acorn/dist/acorn.js:643:37)
    at parse (/data/plugins/music_service/youtube2/node_modules/acorn/dist/acorn.js:5942:19)
    at new Jinter (/data/plugins/music_service/youtube2/node_modules/jintr/bundle/jinter.cjs:999:44)
    at Object.evaluate [as eval] (/data/plugins/music_service/youtube2/node_modules/volumio-youtubei.js/bundle/node.cjs:21633:19)

Ok so I am absolutely beside myself here. The Youtube2 plugin, after I enable test mode DOES NOT WORK! I have been messing with this for a few hours now.
When I enable the test in DEV, I go to Volumio > PLugins > Youtube 2 > DETAILS and it DOES NOT allow me to install 1.2.2 It shows 1.1.5 stable and will not allow me to install 1.2.2. Even after install > Restart and then choosing UPDATE it refuses to update the version. VERY frustrated and am losing a lot of hope in Volumio. It was incredible when it worked. But now it is not working, and even after I sign in to Youtube via the Volumio app, it will still not play any of my favorited Youtube songs. BUMMED is an understatement and I work IT at a world wide electronics company, but no, I am not a developer and I am not stupid. But I am beside myself in frustration with this app and Volumio in general. Any help please? I uninstalled the YOUTUBE2 and Youtube cast apps, and then restarted Volumio, and then tried re-installing several times following patrickkfkan’s instructions. :frowning:

Of note, I am using the MiniDSP SHD Studio, and Volumio came with the price of the unit, so I have a grandfathered Volumio premium service with the price of the $1000 SHD Studio from MiniDSP. I installed Volumio on my Samsung Android tablet.

Hello Volumioappisbuggy,

sorry to hear that the update did not work for you. I remember that it was similar for me once during the update. That is, the version I already had was reinstalled instead of the latest one. Since such things behave deterministic, i.e. it doesn’t work randomly once and not another time, I’m sure that I didn’t follow the sequence in some step or clicked on the wrong version. In this respect, I recommend simply trying again and following the steps carefully.

As an aside: What is confusing is that you write that you have installed Volumio on a Samsung tablet. I don’t think that’s possible, but that Volumio is running on the quad-core ARM processor of your miniDSP.

Hope this helps.

Thanks for the reply. So to be clear, I go to the volumio web interface and go to the http://ip address/dev page and simply highlight the TRUE for the test mode. It is the first option at the top. Then I go back to the interface for Volumio and go to plugins and when I see the Youtube2 plugin it does show 1.2.2 and if I click DETAILS, I am not given ANY choice to choose, it simply shows in a box “version 1.1.5. STABLE” sigh…I am so frustrated with this at this point. Anyhoo, so I go to install. It ONLY installs version 1.1.5. It refuses to install 1.2.2. I use Firefox browser, and I have used the Volumio app on Android. Yes, the Volumio app is in Google Play Store, but I think it is only used to access the Volumio which is on the SHD Studio.
It simply refuses to install 1.2.2. no matter how many times I have tried uninstalling, restarting Volumio, re-enabling test mode and re-installing Youtube2 It always shows only version 1.1.5 installed. Even after install, I choose UPDATE, it shows a progress bar updating, and says it updated. WELL IT DIDN’T UPDATE!! This is not any fun, and I was seriously considering a Volumio dedicated network streamer, BUT NO MORE!! Any help would be greatly appreciated.

hmm, this is indeed a bit strange.

However, to get to the bottom of it:

Have you ever successfully updated the plugin in this way before? And have you asked miniDSP itself (Link)? I think your Volumio version is a customized version and if an update doesn’t work it could be related also to this (?).

Concerning enabling the test mode for plugins into TRUE. I assume this is even not needed, because version 1.2.2 is stated as stable and available also if test mode is equal to FALSE (but this for sure Patrick can answer).

And please also remember: the YouTube2 plugin is somehow a 3rd party plugin and to a certain extent outside of what Volumio is responsible for.

Hi Axel,
I posted in the miniDSP forum about this issue. Even the brand new SHD Studio will not update the Youtube2 plugin to 1.2.2. ??? It seems to point to miniDSP’s custom version of Volumio, BUT it is Volumio’s application riding on the miniDSP so I think Volumio should look into this also. VERY VERY frustrated here. The Youtube2 plugin was too good LOL SMH. I really miss browsing and listening to various YT music. Just to clarify though, I am not paying for any more services, so a subscription to YOUTUBE Music is off the table. The sound quality of the Youtube2 plugin is very good. I’m so frustrated and now I am looking at an alternative to the miniDSP SHD Studio and Volumio for JUST Youtube music streaming. If I have this understanding, I can build a dedicated music PC and load Volumio on it, right? Or just use a browser for Youtube, THEN hopefully not have these issues. But then you have the power supply of the PC to address for noise, the OS stripped down to sound good, etc. etc. etc. ugghhhh As it is I have an $800 linear low-noise power supply for the miniDSP, and if I go to a different setup for streaming, I’d need to also address the power supply. I’ve been an audiophile since the mid 90s. Shame, the SHD Studio with Volumio and the Youtube2 plugin was very good…WHEN IT WAS WORKING :frowning:

This is what I sent to miniDSP:

The Volumio is apparently a special version running on SHD Studio, right?
Well Volumio refuses to update the Youtube2 plugin to the new version.
When I enable the DEV mode, I click TRUE to enable develop test mode so that the newer version of youtube2 plugin shows up, which is version 1.2.2. HOWEVER when I click DETAILS it WILL NOT show the newest version, and will only show version 1.1.5:

When I go to DETAILS it shows:

[image]

IF I enable the DEV option by going here: [image]

I get to this screen and click the first TRUE:

[image]

THEN when I go to uninstall Youtube2 plugin, it then shows version 1.2.2 as the plugin:

[image]

But it REFUSES to install 1.2.2 VERY ANGRY about this!!!

After install it still shows version 1.1.5
Here is what I get after clicking INSTALL where it CLEARLY shows version 1.2.2:

[image]

NO, it doesn’t show version 1.2.2 it SHOWS VERSION 1.1.5!!!

MIND you, I had two SHD Studios, and this new one that I just setup and updated to Volumio version 3.XXX is doing the SAME thing.

So you ask, click the UPDATE button. Well it shows a progress bar and says it updated, but it STILL SHOWS version 1.1.5 AFTER the supposed “update.”
And yes, I Did a Volumio restart after uninstalling the 1.1.5 version, then enabled DEV, then tried installing version 1.2.2.

So NO, it isn’t a need to do a FACTORY RESET. It’s an issue with Volumio for the SHD Studio.

Please, can you fix this so the new version of Youtube2 plugin is properly installed?
It may be an issue with firmware, or the OS of the SHD Studio.
Sincerely disappointed and very upset about this because now I cannot browse Youtube and listen to favorited Youtube music via my SHD Studio.

Hi Volumioappisbuggy,

concerning your message to mininDSP, on one hand you wrote

When I enable the DEV mode, I click TRUE to enable develop test mode so that the newer version of youtube2 plugin shows up, which is version 1.2.2. HOWEVER when I click DETAILS it WILL NOT show the newest version, and will only show version 1.1.5

but on the other hand

"IF I enable the DEV option by going here: [image]

I get to this screen and click the first TRUE:

[image]

THEN when I go to uninstall Youtube2 plugin, it then shows version 1.2.2 as the plugin**emphasized text"

But wait, you wrote, when I go to uninstall Youtube2 plugin, i.e. you means in the installed plugins screens it looks like this?

Later on you wrote

After install it still shows version 1.1.5
Here is what I get after clicking INSTALL where it CLEARLY shows version 1.2.2:

[image]

NO, it doesn’t show version 1.2.2 it SHOWS VERSION 1.1.5!!!

So where from you take the information which plugin version you have installed???

Can you also share your message to miniDSP again but including the screenshots?

In addition it would be helpful to get a little bit more information about what you mean by saying DOES NOT WORK. Right now I even would not exclude that you have installed already v1.2.2 but there’s another issue which comes on top (?). Also to post a Log report might be good in addition.

And again, I like to highlight that plugins are provided by 3rd parties and therefore I think it’s completely wrong to blame Volumio for issues like this (please refer to "What is a plugin and how does it work?).

do you mean plugins test Mode or as you indicate the top test Mode?

please, YT2 v1.2.2 is stable! Stop with test mode…
Uninstall previous if something is wrong but it isn’t required.

I’m sorry for the confusing messages.
I was so upset about this I guess I was not thinking clearly when I was writing.
So the issue is, that it appears the MINIDSP has a Volumio version that it runs in the SHD Studio. This version will not show the 1.2.2 version as installed. It will only show version 1.1.5 as the installed version, but it does hsow version 1.2.2 if you choose to see available plugins.
THE SOLUTION for me was to download the VOLUMIO as an image, put it on a USB drive, and I installed it on a dedicated audio PC. It sounds even better, and I have a current version of Volumio now, which works properly.
I want to thank all of you for responding to my angry rants with patience and concern. I apologize for offending anyone. I really do appreciate it everyone’s help.
So I have alerted miniDSP that it seems their SHD Studio unit running a proprietary version of Volumio, is not correctly installing the new version of the Youtube2 plugin. Nor is the miniDSP version of Volumio updated to the current version of Volumio.
So to recap: my solution was to use a dedicated audio PC, installed the Volumio OS to a USB drive, and install it on the dedicated audio PC. Now life is good!

Also, there are absolutely no issues with the dedicated audio PC running the official Volumio OS, just to be clear. I am running an Intel Xeon processor with a server motherboard and ECU error-correcting RAM. :slight_smile:

plugins test mode.
See my previous reply. I found the solution:
Using Volumio OS and running it on a dedicated PC.

I changed my main profile name as I felt later on that the original name was out of anger and spite, and Volumio does not deserve that. I was just very frustrated. Soo, the issue I am having now is that the Volumio app on my Samsung tablet absolutely will not work after I power down the tablet, then later on power up the tablet to use it to listen to music via Volumio. I have to go into MANAGE APPS > Volumio > Delete cache/ Delete data. THEN after that the Volumio app will immediately find my Volumio PC and work. Or I can uninstall then re-install the app and use it. But as soon as I turn off the tablet, and power it back up, Volumio will no linger find my device on the tablet and I have to either uninstall/re-install, or force delete the cache and data for the app, then it will work. Any help with this?

Sorry to hear this, but however, I believe this is not realated to the Youtube2 plugin and therefore in the wrong chat.

Youtube2 Version 1.2.2 works fine under Volumio 3.757 on a raspi4B with HiFiBerry DAC+ ADC Pro . The bitrate displayed is 160kbps. Changing the bitrate in youtube2 plugin has no effect (presently it is set 19 AUTO)
Can the bitrate be changed?

Sir I just want to ask. During your setup and configuration did you encounter problem? have you seen immediately the plugins in Search Plugins Ta? Because in my case there’s no plugins showing even a single one, it’s already 1 week of trying hard to find a solution but sad to say I didn’t until this moment.

Can you sent a log it might reveal the issue?