[PLUGIN] YouTube for Volumio

Discuss, contribute and orient Volumio development!

Ads helps Volumio remain Free and Open Source. Please consider donating to help us continue to serve you.

[PLUGIN] YouTube for Volumio

Postby lously » Wed Jul 17 2019 04:43

Hi - thanks for all the posts from everyone. very nice display of information sharing and excellent advice that helps.

Can anyone verify if installation of the latest Opus mod in the previous post "https://github.com/quatmo/volumio-youtube-mod"
does provide a working solution to the youtube 2/3 only playback issue?

I tried installing the Opus mod this evening following exactly the directions in the readme file from the github page.
The install was not clean when the npm update was done. (yes I used sudo command and answered A to copy over all modules)
There were 2 warning messages for missing repositories.
Volumio Plugin gui screens afterwards were conflicting. The installed plugin tab showed the software as installed (w/uninstall button)
but the search plugins tab youtube playback entry was opposite (w/install button)

I started to backout by clicking the the uninstall button and the software did not fully uninstall. both tabs now showed the uninstall button but no longer did anything.
the /data/plugins/music_service/youtube directory was no longer removable because it had newer directories added that apparently user
volumio did not have permissions to delete.

I shutdown at that point, pulled the sd card from my ras Pi and restored from a backup.
Random avatar
lously
Fresh off the boat
Fresh off the boat
 
Posts: 3
Joined: Wed Jul 17 2019 02:49

Ads helps Volumio remain Free and Open Source. Please consider donating to help us continue to serve you.


[PLUGIN] YouTube for Volumio

Postby ma_sk1 » Thu Jul 18 2019 15:46

not, it is not working for me....still the same problem, the stream ends in 3/4 of the video
User avatar
ma_sk1
Sunday DIYer
Sunday DIYer
 
Posts: 24
Joined: Tue Feb 06 2018 15:16


[PLUGIN] YouTube for Volumio

Postby quatmo » Thu Jul 18 2019 17:32

@lously and @ma_sk1 Thanks your feedback,

1. Recently, ytdl team, they upgraded to version v0.29.3. My friend also encountered the same error. You can fix it by returning to version v0.29.2. 3/4 stop will occur less often.

ssh single line to fix stop 3/4:
Code: Select all
wget https://github.com/quatmo/volumio-youtube-mod/raw/master/ytdl-core.zip && cd /data/plugins/music_service/youtube/node_modules/ytdl-core && sudo npm i install -g && reboot


2. If you want something new, you can SSH factory reset:

Code: Select all
sudo echo >  /boot/factory_reset
reboot


ssh single line here:

Code: Select all
sudo apt-get update && sudo apt-get install bzip2 && sudo apt-get install mc && wget https://github.com/quatmo/volumio-youtube-mod/raw/master/spotify.zip && mkdir ./spotify && miniunzip spotify.zip -d ./spotify && cd ./spotify && volumio plugin install && cd.. && rm -Rf spotify* && wget https://github.com/quatmo/volumio-youtube-mod/raw/master/youtube.zip && mkdir ./youtube && miniunzip youtube.zip -d ./youtube && cd ./youtube && volumio plugin install && cd .. && rm -Rf youtube* && wget https://github.com/quatmo/volumio-youtube-mod/raw/master/youtube-mod.zip && mkdir /data/INTERNAL/youtube && miniunzip youtube-mod.zip -d /data/plugins/music_service/youtube && cd /data/plugins/music_service/youtube && sudo npm update && cd ~ && curl -O http://download.roonlabs.com/builds/roonbridge-installer-linuxarmv7hf.sh && chmod +x roonbridge-installer-linuxarmv7hf.sh && sudo ./roonbridge-installer-linuxarmv7hf.sh && wget https://github.com/quatmo/volumio-youtube-mod/raw/master/ytdl-core.zip && cd /data/plugins/music_service/youtube/node_modules/ytdl-core && sudo npm i install -g && cd ~ && wget https://github.com/dynobot/Linux-Audio-Adjustments/raw/master/basic-install.sh && chmod 755 basic-install.sh && sudo ./basic-install.sh


Features:
+ Spotify Premium
+ Tidal Hifi
+ Youtube plugin
+ Youtube plugin mod download: download Opus audio
+ Linux Audio-Adjustments
+ Roon-bridge
+ Backup & Restore Data plugin
+ AutoStart plugin
I have test work on Volumio 2.565

Note:
When installing will see the first question, type Y to press enter
The process of installing Spotify is a bit long, takes a few minutes, meets the second question: type A, press enter, type volumio, and press enter.
Meet the third question: type Y press enter - type A, press enter
After all, you will see the following message.
------------------------------------
| Rebooting System Enjoy the Music |
------------------------------------
Random avatar
quatmo
Fresh off the boat
Fresh off the boat
 
Posts: 6
Joined: Thu Jun 13 2019 08:22


[PLUGIN] YouTube for Volumio

Postby quatmo » Fri Jul 19 2019 15:19

@lously and @ma_sk1 Thanks your feedback,

1. Recently, ytdl team, they upgraded to version v0.29.3. My friend also encountered the same error. You can fix it by returning to version v0.29.2. 3/4 stop will occur less often.

ssh single line to fix stop 3/4:
Code: Select all
wget https://github.com/quatmo/volumio-youtube-mod/raw/master/ytdl-core.zip && cd /data/plugins/music_service/youtube/node_modules/ytdl-core && sudo npm i install -g && reboot


2. If you want something new, you can SSH factory reset:

Code: Select all
sudo echo >  /boot/factory_reset
reboot


ssh single line here:

Code: Select all
sudo apt-get update && sudo apt-get install bzip2 && sudo apt-get install mc && wget https://github.com/quatmo/volumio-youtube-mod/raw/master/spotify.zip && mkdir ./spotify && miniunzip spotify.zip -d ./spotify && cd ./spotify && volumio plugin install && cd.. && rm -Rf spotify* && wget https://github.com/quatmo/volumio-youtube-mod/raw/master/youtube.zip && mkdir ./youtube && miniunzip youtube.zip -d ./youtube && cd ./youtube && volumio plugin install && cd .. && rm -Rf youtube* && wget https://github.com/quatmo/volumio-youtube-mod/raw/master/youtube-mod.zip && mkdir /data/INTERNAL/youtube && miniunzip youtube-mod.zip -d /data/plugins/music_service/youtube && cd /data/plugins/music_service/youtube && sudo npm update && cd ~ && curl -O http://download.roonlabs.com/builds/roonbridge-installer-linuxarmv7hf.sh && chmod +x roonbridge-installer-linuxarmv7hf.sh && sudo ./roonbridge-installer-linuxarmv7hf.sh && wget https://github.com/quatmo/volumio-youtube-mod/raw/master/ytdl-core.zip && cd /data/plugins/music_service/youtube/node_modules/ytdl-core && sudo npm i install -g && cd ~ && wget https://github.com/dynobot/Linux-Audio-Adjustments/raw/master/basic-install.sh && chmod 755 basic-install.sh && sudo ./basic-install.sh


Features:
+ Spotify Premium
+ Tidal Hifi
+ Youtube plugin
+ Youtube plugin mod download: download Opus audio
+ Linux Audio-Adjustments
+ Roon-bridge
+ Backup & Restore Data plugin
+ AutoStart plugin
I have test work on Volumio 2.565

Note:
When installing will see the first question, type Y to press enter
The process of installing Spotify is a bit long, takes a few minutes, meets the second question: type A, press enter, type volumio, and press enter.
Meet the third question: type Y press enter - type A, press enter
After all, you will see the following message.
------------------------------------
| Rebooting System Enjoy the Music |
------------------------------------
Random avatar
quatmo
Fresh off the boat
Fresh off the boat
 
Posts: 6
Joined: Thu Jun 13 2019 08:22


[PLUGIN] YouTube for Volumio

Postby lously » Sat Jul 20 2019 00:23

ma_sk1and quatmo thank you for the replies.....

quatmo my recovery backup that I returned to was already on a ytdl 0.29.2 base previously installed using the original posted instructions.
I had to reauthorize it with google after the recovery to get the yt search working again, which is ok, but 2/3 playback still happening on 0.29.2.
I will install the 0.29.3 version per your new instructions and post my results within the next couple of days. I appreciate all the help.
Random avatar
lously
Fresh off the boat
Fresh off the boat
 
Posts: 3
Joined: Wed Jul 17 2019 02:49


[PLUGIN] YouTube for Volumio

Postby quatmo » Sat Jul 20 2019 13:27

You can try other solution for fix 3/4 stop, overwrite ytdl-core and miniget:

Code: Select all
sudo chmod -R 777 /data/plugins/music_service/youtube/node_modules && wget https://github.com/quatmo/volumio-youtube-mod/raw/master/ytdl-core.zip && miniunzip ytdl-core.zip -d /data/plugins/music_service/youtube/node_modules/ytdl-core && cd /data/plugins/music_service/youtube/node_modules/ytdl-core && sudo npm install && reboot
Last edited by quatmo on Fri Jul 26 2019 03:51, edited 1 time in total.
Random avatar
quatmo
Fresh off the boat
Fresh off the boat
 
Posts: 6
Joined: Thu Jun 13 2019 08:22


[PLUGIN] YouTube for Volumio

Postby lously » Thu Jul 25 2019 02:25

Quatmo,

Last Sunday I applied the update you suggested to upgrade to ytdl-core v0.29.3

before applying the update I.

rebooted
deactivated the youtube plugin
ran your single line, multiple commands example

wget https://github.com/quatmo/volumio-youtu ... l-core.zip && cd /data/plugins/music_service/youtube/node_modules/ytdl-core && sudo npm i install -g && reboot


The above ran cleanly. There were a couple messages saying a module was updated.

I then proceeded to activate the youtube plugin. This time behind the settings button contained no text box where the security key normally was. Instead it listed one line saying:
"Volumio has access to your youtube account. We will only use it to display videos related to your account"

Afterwards my youtube searches worked fine and I could playback music. I have done so every day since and unfortunately the 2/3 only playback issue still exists. Results do not seem any better than running on plain v0.29.2

thanks for making the effort to help.
Random avatar
lously
Fresh off the boat
Fresh off the boat
 
Posts: 3
Joined: Wed Jul 17 2019 02:49


[PLUGIN] YouTube for Volumio

Postby hombibi » Tue Aug 06 2019 13:12

All, thank for the work on the youtube plugin, when it works it is really a great function

I also experience the cut off of songs. Some observations I hope may help:

1) The troubles started in June with not being able to play songs any longer
2) Playing capability was restored by ma_sk1 on the 17th of June, still in use by me as it is not clear how/which versions/forks have progressed.
3) The cut off only occurs on when on a wireless network, as was also noted by ma_sk1. With an ethernet cable connected the cutoff does not occur.
3) the clock/timer that supports the song runs too fast when on wifi.

Hombibi
Random avatar
hombibi
Fresh off the boat
Fresh off the boat
 
Posts: 1
Joined: Sun Jul 21 2019 16:17


[PLUGIN] YouTube for Volumio

Postby sagol » Fri Aug 09 2019 18:53

Hi,

First of all, thanks for a wonderful plugin!
After the SSH fix, it works great.

I'm just wondering if there is an option to support youtube mix playlists, such that you would enter a song (like a seed), and let youtube mix continue automatically from song to song (similar to autoplay on youtube).

thanks!
Random avatar
sagol
Fresh off the boat
Fresh off the boat
 
Posts: 1
Joined: Fri Aug 09 2019 18:49


[PLUGIN] YouTube for Volumio: Activation fails

Postby jro » Sun Aug 11 2019 11:02

This is what I see when I enter the plugin after seemingly having connected it successfully:

/var/log/volumio.log:

2019-08-11T10:58:43.800Z - error: Access Not Configured. YouTube Data API has not been used in project 119103001349 before or it is disabled. Enable it by visiting https://console.developers.google.com/a ... 9103001349 then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry.
Error: Access Not Configured. YouTube Data API has not been used in project 119103001349 before or it is disabled. Enable it by visiting https://console.developers.google.com/a ... 9103001349 then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry.
at Request._callback (/data/plugins/music_service/youtube/node_modules/google-auth-library/lib/transporters.js:85:15)
at Request.self.callback (/data/plugins/music_service/youtube/node_modules/request/request.js:185:22)
at emitTwo (events.js:126:13)
at Request.emit (events.js:214:7)
at Request.<anonymous> (/data/plugins/music_service/youtube/node_modules/request/request.js:1161:10)
at emitOne (events.js:116:13)
at Request.emit (events.js:211:7)
at IncomingMessage.<anonymous> (/data/plugins/music_service/youtube/node_modules/request/request.js:1083:12)
at Object.onceWrapper (events.js:313:30)
at emitNone (events.js:111:20)
at IncomingMessage.emit (events.js:208:7)
at endReadableNT (_stream_readable.js:1064:12)
at _combinedTickCallback (internal/process/next_tick.js:138:11)
at process._tickCallback (internal/process/next_tick.js:180:9)
Last edited by jro on Sun Aug 11 2019 11:45, edited 1 time in total.
Random avatar
jro
Fresh off the boat
Fresh off the boat
 
Posts: 5
Joined: Sun Aug 11 2019 10:36

PreviousNext

Return to Development talks

Who is online

Users browsing this forum: No registered users and 0 guests