[PLUGIN] YouTube for Volumio

@Osdieman, give the old volumio and old YT version in combination a try before. With newer versions with either one of the System or plugin i had Problems with my personal api as well, with a lot of errors at yt requests… but now everything seems to be Fine as well…

nice older version but where are the sparky’s only 1 and that one will not support my dragonfly dac
so i have no options… if you know any sparky versions that i can download i could test…

volumio-2.348-2017-12-22-sparky.img.zip has a 404 page
could some one of volumio upload them ??

okay i managed to get this working again… running volumio version 2.729 and YT plugin 0.1.0

I had to create a new api but only had the option to create : Client ID for TV and Limited Input

My old personal API does not work for some reason… probably because it has application option " other " this option seems no longer to exist…

So to put this together…

Volumio version 2.729 , YT plugin version 0.1.0 ( date 20191224 ) as base.
Also run in terminal : cd /data/plugins/music_service/youtube/
Then run : npm install ytdl-core@latest inside
Then run : reboot volumio

Then i had to create a new Personal API where i had to choose : Client ID for TV and Limited Input
As the option " other " no longer exists.
After that i put these new created credentials in the plugin…
Allowed volumio to use youtube in my google account reboot device…
Now it works… Hope this can help others

Lets hope all that the DEV’s will find a good way to get this working normally for all users again…

Kind regards to all…

there are images only you really have to find them with a trick :smile: found the
http://updates.volumio.org/sparky/volumio/2.729/volumio-2.729-2020-03-18-sparky.img.zip
http://updates.volumio.org/sparky/volumio/2.777/volumio-2.777-2020-05-25-sparky.img.zip

i only don’t know how to create a personal api is there a how to some where?
all other things are in place … so same versions of yt 0.1.0 and the 2.729 sparky image…

This is what u need to do …

done that and got trending of youtube …but no sound and player doesn’t play…
if i switch to radio i got sound…strange…

got it working after : npm install ytdl-core@latest

uhm… day later it’s gone again …

I tried all the instructions including your tip yesterday and have the same result. I can search Youtube etc but no sound and the player doesn’t play my choice.

was trying to create a new v3 youtube api this didn’t go… i can login but that is it…
can’t create anything there at the momment… got stuck on the 3 dots …

@dvo
what do you mean the api didnt go? did you create the api etc as the steps?

@ppan
did you? npm install ytdl-core@latest

couldn’t create it again after removing the old (worked 4 a day ) ,
and yess it worked with the latest npm install … couldn’t create a new api for now…
the step of creating v3 youtube api got stuck on 3 loading dots …
the rest needs to have the api to go on…

@dvo
you can even create a new project if for reason you cant create the api key.

if i try to add api in new project it doesn’t add the api … some loading loop with 3 dots
i think it’s because it had a lot of requests…

Goto “/data/plugins/music_service/youtube/node_modules/ytdl-core”
Then run “npm outdated”.

so if you can’t create a api your solution is updating npm? gaap!
[update] today i could create a new key and it works again…[update]

Yes I did that (extra text cause I need 20 characters minimum)

Hi, i use plugin from @patrickkfkan. For several days i have problem with play music from youtube. But i can connect to my account and searches youtube. Maybe someone have similar trouble?

This is log from journalctl:

Jul 25 17:40:45 volumio2 volumio[753]: info: CoreCommandRouter::executeOnPlugin: my_volumio , getMyVolumioStatus
Jul 25 17:40:47 volumio2 volumio[753]: info: CoreCommandRouter::volumioPlay
Jul 25 17:40:47 volumio2 volumio[753]: UNSET VOLATILE
Jul 25 17:40:47 volumio2 volumio[753]: info: CoreStateMachine::play index undefined
Jul 25 17:40:47 volumio2 volumio[753]: info: CoreStateMachine::setConsumeUpdateService undefined
Jul 25 17:40:47 volumio2 volumio[753]: info: CorePlayQueue::getTrack 3
Jul 25 17:40:47 volumio2 volumio[753]: info: CoreStateMachine::startPlaybackTimer
Jul 25 17:40:47 volumio2 volumio[753]: info: CorePlayQueue::getTrack 3
Jul 25 17:40:47 volumio2 volumio[753]: info: [1595698847616] Youtube::clearAddPlayTrack
Jul 25 17:40:47 volumio2 volumio[753]: ***** track.uri: XZB_u_v_E-w
Jul 25 17:40:48 volumio2 volumio[753]: Error: Error parsing config: Unexpected token ; in JSON at position 254973
Jul 25 17:40:48 volumio2 volumio[753]: at gotConfig (/data/plugins/music_service/youtube/node_modules/ytdl-core/lib/info.js:123:21)
Jul 25 17:40:48 volumio2 volumio[753]: at request (/data/plugins/music_service/youtube/node_modules/ytdl-core/lib/info.js:74:7)
Jul 25 17:40:48 volumio2 volumio[753]: at PassThrough.Miniget.stream.on (/data/plugins/music_service/youtube/node_modules/miniget/dist/index.js:196:32)
Jul 25 17:40:48 volumio2 volumio[753]: at emitNone (events.js:111:20)
Jul 25 17:40:48 volumio2 volumio[753]: at PassThrough.emit (events.js:208:7)
Jul 25 17:40:48 volumio2 volumio[753]: at endReadableNT (_stream_readable.js:1064:12)
Jul 25 17:40:48 volumio2 volumio[753]: at _combinedTickCallback (internal/process/next_tick.js:138:11)
Jul 25 17:40:48 volumio2 volumio[753]: at process._tickCallback (internal/process/next_tick.js:180:9)
Jul 25 17:40:48 volumio2 volumio[753]: Error opening Youtube stream, video is probably not valid.
Jul 25 17:40:50 volumio2 volumio[753]: info: CoreCommandRouter::volumioGetState
Jul 25 17:40:50 volumio2 volumio[753]: info: CorePlayQueue::getTrack 3

uhm youtube plugin is broken i will use my one script without any login
with only 50 songs at one time… (not related to volumio… )