[PLUGIN] YouTube2

no problem. thanks also for your response. just i can find my liked videos and playlists that i do from an other device.

i think i figured it out. for some reason the api that i had its not working probably did records to the limit.
i added different api and it worked…

Plugin version 1.x no longer requires Google API credentials for signing into YT.

Updated v1.1.0:

  • Support prefetching next track
  • Add option to fetch autoplay videos from Mixes and Related Videos in preference to using YouTube’s default. If you find YouTube’s autoplay algorithm quirky, you can try enabling this option.
  • Autoplay doesn’t work well when “Add to History” is disabled - there can be a high number of repeating videos. The plugin now warns you when you set Autoplay to ON and “Add to History” to OFF in the plugin settings.

The plugin has been recoded in TypeScript with the view of easier maintenance down the road. There may be regressions – if you come across any, please report them here.

v1.1.0 is currently in beta channel of Volumio plugin store. To install:

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

(All steps mandatory)

2 Likes

when i install the plugin, and go to settings my rpi4 freezes and upon reboot only gives me white screens. i cant acces anymore on browser only when i delete the folder in ssh and reboot it returns to normal state :open_mouth:

It think it was just today that YouTube changed something that caused the underlying YouTube.js library to block the system process when trying to authenticate, making Volumio unresponsive. I have identified the cause and should be able to provide an update later in the day.

Updated v1.1.2, which addresses this:

For unfortunate souls who installed a previous version and now has an unresponsive Volumio, you can try the following:

  1. Wait and see if the issue clears itself. While appearing unresponsive, the plugin (more precisely, the underlying YouTube.js library) is actually trying to parse an YT authentication script. It will fail eventually but it could take many, many hours. Once Volumio becomes responsive again, uninstall the plugin immediately. Don’t try to disable and re-enable it or you would have to wait again.
  2. ssh into Volumio and run the following command to delete the youtube2 plugin folder, followed by restarting Volumio:
    rm -rf /data/plugins/music_service/youtube2 
    

To install the updated plugin from beta channel:

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

Thanks @patrickkfkan. I was experiencing the issue and didn’t realize that it was caused by the Youtube plugin until I came here to see the post from @marlon_wolf and your response. Thanks for the quick resolution! I will give this new update a try.

Question: Is it possible in the future that changes on Youtube side could affect the plugin where it locks up Volumio again?

Yes, it is possible. It’s an ongoing fight.

On a serious note, something can probably be done within the underlying YouTube.js library to avoid the same thing happening again. I will discuss with the devs of that library and see if they will do anything about it.

:slight_smile: Thanks. The new version is working.

I have a premium account until August 2023. I turn on volumio and after the logo there is only a white screen. I switched main to WiFi and volumio started when wifi was not connected. I entered the password and again the white screen. Obviously something with the account. I’m trying to change to a free plan but it throws an error. Interestingly, the second raspberry device is the same - the same symptoms. Can’t I change my tariff plan or extend it?

If you have one of the YouTube plugins, please see this post.

But how to do it with a white screen? And without the computer seeing the IP address? Any commands?

I have the same problem. After updating the YouTube 2 plugin and rebooting. Only the white screen. There is no web access. SSH is working.

Both of my raspberrypis are down (3&4) and they are failing to boot (4 green light blinks). I had the plugin installed on both. I thought it was a card error so I burned a fresh image of volumio on a new card with no luck. Then I tried the same with 2 other new cards, then I also tried writing the cards from another computer- zero luck. The cards work fine if I burn them with raspbian and test, so no issues there. Is there something wrong with the volumio image available for download?

I’ve tried V3.449 on 2 rPi4’s without issues. So not sure what is happening.
Since you still can SSH, can you run the command:
sudo journalctl -f

and post the results?

I’ve wiped both cards with a fresh install of Volumio-3.449 and none seem to be booting. I can still SSH in- I didn’t think that was possible?

from raspbian I get this, but I dont think it will help

-- Journal begins at Wed 2023-05-03 01:36:11 BST. --
Jun 29 00:32:27 raspberrypi PackageKit[1267]: uid 1000 is trying to obtain org.f                                               reedesktop.packagekit.system-sources-refresh auth (only_trusted:0)
Jun 29 00:32:27 raspberrypi PackageKit[1267]: uid 1000 obtained auth for org.fre                                               edesktop.packagekit.system-sources-refresh
Jun 29 00:32:39 raspberrypi PackageKit[1267]: refresh-cache transaction /1_dadaa                                               eda from uid 1000 finished with success after 11976ms
Jun 29 00:32:43 raspberrypi PackageKit[1267]: get-updates transaction /2_cdcacab                                               a from uid 1000 finished with success after 3963ms
Jun 29 00:33:00 raspberrypi sshd[1407]: Accepted password for pi from fe80::7f65                                               :c9f7:f026:7805%wlan0 port 51854 ssh2
Jun 29 00:33:00 raspberrypi sshd[1407]: pam_unix(sshd:session): session opened f                                               or user pi(uid=1000) by (uid=0)
Jun 29 00:33:00 raspberrypi systemd-logind[451]: New session 4 of user pi.
Jun 29 00:33:00 raspberrypi systemd[1]: Started Session 4 of user pi.
Jun 29 00:33:17 raspberrypi sudo[1427]:       pi : TTY=pts/0 ; PWD=/home/pi ; US                                               ER=root ; COMMAND=/usr/bin/journalctl -f
Jun 29 00:33:17 raspberrypi sudo[1427]: pam_unix(sudo:session): session opened f                                               or user root(uid=0) by pi(uid=1000)
-- Journal begins at Wed 2023-05-03 01:36:11 BST. --
Jun 29 00:32:27 raspberrypi PackageKit[1267]: uid 1000 is trying to obtain org.f                                               reedesktop.packagekit.system-sources-refresh auth (only_trusted:0)
Jun 29 00:32:27 raspberrypi PackageKit[1267]: uid 1000 obtained auth for org.fre                                               edesktop.packagekit.system-sources-refresh
Jun 29 00:32:39 raspberrypi PackageKit[1267]: refresh-cache transaction /1_dadaa                                               eda from uid 1000 finished with success after 11976ms
Jun 29 00:32:43 raspberrypi PackageKit[1267]: get-updates transaction /2_cdcacab                                               a from uid 1000 finished with success after 3963ms
Jun 29 00:33:00 raspberrypi sshd[1407]: Accepted password for pi from fe80::7f65                                               :c9f7:f026:7805%wlan0 port 51854 ssh2
Jun 29 00:33:00 raspberrypi sshd[1407]: pam_unix(sshd:session): session opened f                                               or user pi(uid=1000) by (uid=0)
Jun 29 00:33:00 raspberrypi systemd-logind[451]: New session 4 of user pi.
Jun 29 00:33:00 raspberrypi systemd[1]: Started Session 4 of user pi.
Jun 29 00:33:17 raspberrypi sudo[1427]:       pi : TTY=pts/0 ; PWD=/home/pi ; US                                               ER=root ; COMMAND=/usr/bin/journalctl -f
Jun 29 00:33:17 raspberrypi sudo[1427]: pam_unix(sudo:session): session opened f                                               or user root(uid=0) by pi(uid=1000)

^ this is from a card that previously wouldnt boot volumio that I reimaged with raspbian

Please try the following:
Open a SHH to your rPi and enter:
node /volumio/logsubmit.js

And paste the url here:

http://logs.volumio.org/volumio/cqA3vzT.html

And please confirm, this is with the bare Volumio image, not with the youtube plugin. As this topic got a bit polluted.

http://logs.volumio.org/volumio/d8NhFu2.html