[PLUGIN] YouTube2

Hello,
A Merry Christmas to everyone.
Maybe this is a silly question but this plugin allows to see YouTube videos in volumio or only sound
Thanks

only sound…it’s not a video player volumio :slight_smile:

installed and works perfectly, thanks :smiley:

raspberry pi 2 volumio 3.

Hope you have all enjoyed a great Christmas~

Here’s an update that fixes a how-could-i-have-missed-it bug that affects single video playback with YouTube API.

Follow instructions on Github repo to update.

@dvo, could you test if the update fixes this (play with API)?

@patrickkfkan yes it works again on api to …

Hi @Axel, I have raised some points about this issue here (a little bit technical):

I hope I’ll be able to get some insights from others on how to approach this. In the meantime, if you want to add a song that you like to your favorites or playlist, you can go to Last 100 (which now works) and add it from there.

-Patrick

that works oke…if you update to the latest…you can add the last 100

Hi to all,

pardon me can’t have time these days.
Anyway… i have encountered the same error. 3 days ago during a session, i added a music vido to playlist and the plugin was unable to find music with scraping method.
After update and re-verification of google account now it’s all working.

I remember i have a raspi2 and volumio 2 latest version 2.87

If you need other informations or log contact me!
Happy Xmas!

Bye
Gabriele

there where a few fixes lately …update to the latest and all should work now…

On Raspberry PI 4, 4-Gig version
Volumio System Version 2.853
I installed the youtube2 plugin 0.1.0a-20201226
I updated mpd to version mpd-0.21.16_20191227
I played several tracks from youtube and do not have tracks stopping at 2/3, 3/4 of the way through now. I updated the youtube pluggin thread with this info as well
Thanks!

This plugin works perfectly on the X86 debian buster image.

Hi Guys…
I am having the 3/4 issue with youtube2 plugin…
I am running volumio version 2.861 on raspberry pi 3B
the plugin works ( also using API keys ) but indeed it stops all songs at 3/4
I have tried to update the mpd version as discribed here ( MPD 0.21.16 for Volumio (arm, armv7 and x86) ) but for some reason this version is not accepted ( wont start.
I have tried both versions arm and armv7…
So now i am stuck a litle and see no solutions atm for me…
Can someone maybe help me out with this ?

Kind regards Osdieman

@Osdieman, run these commands in SSH:

$ systemctl status mpd

$ ls /opt/mpd*

What do you see?

systemctl status mpd gives
volumio@volumio-main:~$ systemctl status mpd
● mpd.service - Music Player Daemon
Loaded: loaded (/lib/systemd/system/mpd.service; enabled)
Active: active (running) since Wed 2020-12-30 11:11:55 UTC; 45min ago
Docs: man:mpd(1)
man:mpd.conf(5)
Main PID: 684 (mpd)
CGroup: /system.slice/mpd.service
└─684 /usr/bin/mpd --no-daemon

Dec 30 11:11:55 volumio-main systemd[1]: Started Music Player Daemon.

ls /opt/mpd* gives
volumio@volumio-main:~$ ls /opt/mpd*
ls: cannot access /opt/mpd*: No such file or directory

volumio@volumio-main:~/opt/mpd-0.21.16_20191227/bin$ ls gives
mpd systemd-switch-mpd.sh

Where i have used the Pi version ( mpd-0.21.16.arm-20191228-3v3jy.tar.gz )
Also tried the armv7 version with same result…))

You extracted the contents of the mpd archive to your home directory.

What you need to do is unpack it into the root directory:

$ cd /
$ sudo tar xzf <path to mpd archive>
$ cd /opt/mpd-0.21.16_20191227/bin
$ ./mpd --version
// Check output does not contain errors, then activate
$ sudo ./systemd-switch-mpd.sh

I think you left out the important cd / right at the beginning.

1 Like

aaaah that could be indeed… let me try once more hehehe… )))

I can confirm it works now… super thanks Patrick…!!! happy new year and listening all… and thank you all for this unbelievable great work…!!!

i finally have everything working as i have planned
Volumio with : youtube => spotify => Tidal => local files and all served to 4 other rooms with snapcast… Wonderfull…!!!

Regards Osdieman

That’s just awesome! Happy new year too (and everyone here~)

2 Likes

Hi Patrickkfkan,

Happy new year.
Works perfectly on v3.010.

BR
Josef

I just had to come back to give big thanks to @patrickkfkan, @dvo and everyone else involved in this project and Volumio overall. I appreciate all the effort, work and support you all give. The new Youtube plugin has become the plugin I’ve been using the most. I’m really happy with the new features of Autoplay, and customized “Front Page Sections”.

Like the comment above, having Volumio with these plugins together with snapcast for multiroom capabilities… Awesome Stuff!!!

Thank you the great Xmas present. :slight_smile:

I think I find a problem. If I play playlist from Youtube plugin, sometimes I got an error: “443 Connection refused” and then stop the playing of the other sounds.

RPI image the latest (beta): Raspberry Pi Volumio-3.015-2021-01-03-pi
Youtube plugin is the latest too.

Everything is working fine, but sometimes i got that strange error.
Am I doing something wrong?
Thank you.

Logs:

– Logs begin at Thu 2019-02-14 11:12:01 CET. –
Jan 06 14:14:47 nappali volumio[767]: info: CoreCommandRouter::volumioGetState
Jan 06 14:14:47 nappali volumio[767]: info: Listing playlists
Jan 06 14:14:47 nappali volumio[767]: info: Listing playlists
Jan 06 14:14:57 nappali volumio[767]: info: CoreCommandRouter::volumioGetState
Jan 06 14:14:59 nappali sudo[17964]: pam_unix(sudo:session): session closed for user root
Jan 06 14:15:07 nappali volumio[767]: info: CoreCommandRouter::volumioGetState
Jan 06 14:15:07 nappali volumio[767]: info: Listing playlists
Jan 06 14:15:07 nappali volumio[767]: info: Listing playlists
Jan 06 14:15:11 nappali sudo[17972]: volumio : TTY=pts/0 ; PWD=/home/volumio ; USER=root ; COMMAND=/bin/journalctf
Jan 06 14:15:11 nappali sudo[17972]: pam_unix(sudo:session): session opened for user root by volumio(uid=0)
Jan 06 14:15:16 nappali volumio[767]: info: CoreCommandRouter::volumioPlay
Jan 06 14:15:16 nappali volumio[767]: UNSET VOLATILE
Jan 06 14:15:16 nappali volumio[767]: info: CoreStateMachine::play index undefined
Jan 06 14:15:16 nappali volumio[767]: info: CoreStateMachine::setConsumeUpdateService undefined
Jan 06 14:15:16 nappali volumio[767]: info: CorePlayQueue::getTrack 11
Jan 06 14:15:16 nappali volumio[767]: info: CoreStateMachine::startPlaybackTimer
Jan 06 14:15:16 nappali volumio[767]: info: CorePlayQueue::getTrack 11
Jan 06 14:15:16 nappali volumio[767]: info: [youtube2-play] clearAddPlayTrack: youtube2/video@videoId=gmrBzlbSQxg
Jan 06 14:15:17 nappali volumio[767]: info: CoreCommandRouter::volumioGetState
Jan 06 14:15:17 nappali volumio[767]: info: CorePlayQueue::getTrack 11
Jan 06 14:15:19 nappali volumio[767]: info: CorePlayQueue::getTrack 11
Jan 06 14:15:19 nappali volumio[767]: verbose: ControllerMpd::sendMpdCommand stop
Jan 06 14:15:19 nappali volumio[767]: verbose: ControllerMpd::sendMpdCommand clear
Jan 06 14:15:19 nappali volumio[767]: info:
Jan 06 14:15:19 nappali volumio[767]: ---------------------------- MPD announces system playlist update
Jan 06 14:15:19 nappali volumio[767]: info: Ignoring MPD Status Update
Jan 06 14:15:19 nappali volumio[767]: verbose: ControllerMpd::sendMpdCommand load “https://r1---sn-qpbpu8-c0qs.goovideo.com/videoplayback?expire=1609960516&ei=5Lf1X4-tNdGEmLAP-v2D8As&ip=77.234.76.252&id=o-ADz1WR3kfCVfDyx3zdCZL19S8nJwg2uAU86xk0Rpf&itag=251&source=youtube&requiressl=yes&mh=1M&mm=31%2C29&mn=sn-qpbpu8-c0qs%2Csn-c0q7lns7&ms=au%2u&mv=m&mvi=1&pl=22&gcr=hu&initcwndbps=1630000&vprv=1&mime=audio%2Fwebm&ns=c6tBOovsv_LDoEB2YeVfLh8F&gir=yes&clen=3976&dur=239.221&lmt=1598103237093540&mt=1609938522&fvip=1&keepalive=yes&c=WEB&txp=5531432&n=6ues0JYsbRPaLRA-&sparamxpire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cgcr%2Cvprv%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&lsparams=mh%2C2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=AG3C_xAwRgIhAPmK_GQ8h5uJ-Q41WS71jbczTn7GbU63OE35DRUWkXmjAiEA-KFfNXsmb4Cq9ZytKxm6o1mZ6lWpumnKXPMgUmh0%3D&ratebypass=yes&sig=AOq0QJ8wRgIhAKQz7nAR1lEvHV8L8C1UcihTDdYw-2tDPtuYTahpQhxHAiEAwqCUJDtYDIGnkIQ0tDgQ13wX67NgyqMb3CA1yipI%3D
Jan 06 14:15:19 nappali volumio[767]: error: updateQueue error: null
Jan 06 14:15:19 nappali volumio[767]: info: ------------------------------ 3ms
Jan 06 14:15:20 nappali volumio[767]: verbose: ControllerMpd::sendMpdCommand addid “https://r1---sn-qpbpu8-c0qs.goevideo.com/videoplayback?expire=1609960516&ei=5Lf1X4-tNdGEmLAP-v2D8As&ip=77.234.76.252&id=o-ADz1WR3kfCVfDyx3zdCZL1lS8nJwg2uAU86xk0Rpf&itag=251&source=youtube&requiressl=yes&mh=1M&mm=31%2C29&mn=sn-qpbpu8-c0qs%2Csn-c0q7lns7&ms=au%du&mv=m&mvi=1&pl=22&gcr=hu&initcwndbps=1630000&vprv=1&mime=audio%2Fwebm&ns=c6tBOovsv_LDoEB2YeVfLh8F&gir=yes&clen=3076&dur=239.221&lmt=1598103237093540&mt=1609938522&fvip=1&keepalive=yes&c=WEB&txp=5531432&n=6ues0JYsbRPaLRA-&sparaexpire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cgcr%2Cvprv%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&lsparams=mh%2%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=AG3C_xAwRgIhAPmK_GQ8h5uJ-Q41WS71jbczTn7GbU63OE35DRUWkXmjAiEA-KFfNXsm34Cq9ZytKxm6o1mZ6lWpumnKXPMgUmh0%3D&ratebypass=yes&sig=AOq0QJ8wRgIhAKQz7nAR1lEvHV8L8C1UcihTDdYw-2tDPtuYTahpQhxHAiEywqCUJDtYDIGnkIQ0tDgQ13wX67NgyqMb3CA1yipI%3D
Jan 06 14:15:20 nappali volumio[767]: info:
Jan 06 14:15:20 nappali volumio[767]: ---------------------------- MPD announces system playlist update
Jan 06 14:15:20 nappali volumio[767]: info: Ignoring MPD Status Update
Jan 06 14:15:20 nappali volumio[767]: verbose: MPD COMMAND [object Object]
Jan 06 14:15:20 nappali volumio[767]: verbose: MPD COMMAND [object Object]
Jan 06 14:15:20 nappali volumio[767]: info:
Jan 06 14:15:20 nappali volumio[767]: ---------------------------- MPD announces system playlist update
Jan 06 14:15:20 nappali volumio[767]: info: Ignoring MPD Status Update
Jan 06 14:15:20 nappali volumio[767]: info: ------------------------------ 4ms
Jan 06 14:15:20 nappali volumio[767]: info: CoreStateMachine::setConsumeUpdateService mpd
Jan 06 14:15:20 nappali volumio[767]: verbose: ControllerMpd::sendMpdCommand play
Jan 06 14:15:20 nappali volumio[767]: info: ------------------------------ 4ms
Jan 06 14:15:20 nappali volumio[767]: info:
Jan 06 14:15:20 nappali volumio[767]: ---------------------------- MPD announces state update: player
Jan 06 14:15:20 nappali volumio[767]: info: ControllerMpd::getState
Jan 06 14:15:20 nappali volumio[767]: verbose: ControllerMpd::sendMpdCommand status
Jan 06 14:15:20 nappali volumio[767]: verbose: ControllerMpd::sendMpdCommand clearerror
Jan 06 14:15:20 nappali volumio[767]: verbose: ControllerMpd::parseState
Jan 06 14:15:20 nappali volumio[767]: verbose: ControllerMpd::sendMpdCommand playlistinfo
Jan 06 14:15:20 nappali volumio[767]: verbose: ControllerMpd::parseTrackInfo
Jan 06 14:15:20 nappali volumio[767]: info: ControllerMpd::pushState
Jan 06 14:15:20 nappali volumio[767]: info: CoreCommandRouter::servicePushState
Jan 06 14:15:20 nappali volumio[767]: info: CoreStateMachine::pushState
Jan 06 14:15:20 nappali volumio[767]: info: CoreCommandRouter::volumioPushState
Jan 06 14:15:20 nappali volumio[767]: info: CoreCommandRouter::executeOnPlugin: volumiodiscovery , saveDeviceInfo
Jan 06 14:15:20 nappali volumio[767]: info: CorePlayQueue::getTrack 11
Jan 06 14:15:20 nappali volumio[767]: verbose: STATE SERVICE {“status”:“stop”,“position”:0,“seek”:null,“duration”:l,“samplerate”:null,“bitdepth”:null,“channels”:null,“random”:false,“updatedb”:false,“repeat”:false,“bitrate”:null,Streaming":false,“title”:“Takagi & Ketra, Elodie, Mariah - Ciclone ft. Gipsy Kings, Nicolás Reyes, Tonino Baliardoartist”:“Takagi & Ketra”,“album”:“YouTube Video”,“uri”:“https://r1---sn-qpbpu8-c0qs.googlevideo.com/videoplayback?ire=1609960516&ei=5Lf1X4-tNdGEmLAP-v2D8As&ip=77.234.76.252&id=o-ADz1WR3kfCVfDyx3zdCZL19j1lS8nJwg2uAU86xk0Rpf&itag=&source=youtube&requiressl=yes&mh=1M&mm=31%2C29&mn=sn-qpbpu8-c0qs%2Csn-c0q7lns7&ms=au%2Crdu&mv=m&mvi=1&pl=22&gcr=hnitcwndbps=1630000&vprv=1&mime=audio%2Fwebm&ns=c6tBOovsv_LDoEB2YeVfLh8F&gir=yes&clen=3902076&dur=239.221&lmt=1598137093540&mt=1609938522&fvip=1&keepalive=yes&c=WEB&txp=5531432&n=6ues0JYsbRPaLRA-&sparams=expire%2Cei%2Cip%2Cid%2Ci%2Csource%2Crequiressl%2Cgcr%2Cvprv%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2CpCinitcwndbps&lsig=AG3C_xAwRgIhAPmK_GQ8h5uJ-Q41WS71jbczTn7GbU63OE35DRUWkXmjAiEA-KFfNXsmbKU34Cq9ZytKxm6o1mZ6lWpumnKXUmh0%3D&ratebypass=yes&sig=AOq0QJ8wRgIhAKQz7nAR1lEvHV8L8C1UcihTDdYw-2tDPtuYTahpQhxHAiEA62ywqCUJDtYDIGnkIQ0tDgQ13wXgyqMb3CA1yipI%3D",“trackType”:"”}
Jan 06 14:15:20 nappali volumio[767]: verbose: CURRENT POSITION 11
Jan 06 14:15:20 nappali volumio[767]: info: CoreStateMachine::syncState stateService stop
Jan 06 14:15:20 nappali volumio[767]: info: CoreStateMachine::syncState currentStatus stop
Jan 06 14:15:20 nappali volumio[767]: info: CoreStateMachine::pushState
Jan 06 14:15:20 nappali volumio[767]: info: CoreCommandRouter::volumioPushState
Jan 06 14:15:20 nappali volumio[767]: info: CoreCommandRouter::executeOnPlugin: volumiodiscovery , saveDeviceInfo
Jan 06 14:15:20 nappali volumio[767]: info: No code
Jan 06 14:15:20 nappali volumio[767]: info: CoreStateMachine::pushState
Jan 06 14:15:20 nappali volumio[767]: info: CoreCommandRouter::volumioPushState
Jan 06 14:15:20 nappali volumio[767]: info: CoreCommandRouter::executeOnPlugin: volumiodiscovery , saveDeviceInfo
Jan 06 14:15:20 nappali volumio[767]: info: ------------------------------ 21ms
Jan 06 14:15:27 nappali volumio[767]: info: CoreCommandRouter::volumioGetState
Jan 06 14:15:27 nappali volumio[767]: info: Listing playlists
Jan 06 14:15:27 nappali volumio[767]: info: Listing playlists

Screenshot: