[PLUGIN] YouTube2

Today I found the YouTube2 plugin version 1.2.0 changed into ‘stable’ from ‘beta’ as advised by the ‘balbuse’. Of course, I just tried to install this version 1.2.0 from my previous one 1.1.5 and it worked well again as before. Great thanks for all colleagues to resolve the issue. Thank you all again.

Updated:

Thanks for the swift update !

Great thanks for your fast and hard work!

Many thanks for the timely update!!

Something that regularly fails for me is the automatic sign-in. Youtube then does not work, but it is enough to deactivate the plugin and then activate it again and the sign-in works. I suspect this is a problem with timining when booting (?)

Yes same here, including the workaround. This has been the case for as long as I can remember. After a restart of the Pi (4 or 5). I leave mine on most of the time, so not a big issue.

I need to correct myself (checked it just now): Even when it’s showing “Signin in…” the plugin plays. Perhaps not always, but at least it’s not as clear as I thought.

With me, when it’s not logged in properly, the plugin does play, but no access to favourites, etc.

Have installed all possible YT2 stable and beta, from 1.2.1 stable and 1.1.6 beta. played 1 day.
YT2 uninstalled ,reboot then test pluging activated 1.2.1 version installed logged in to google and not playing (big red bars ).same with 1.1.6 beta .but has worked for me the last few days I think with ver.1.1.6 beta .

Same here :frowning:
(I had version 1.2.1 successfull in use until the day before yesterday)

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: