You said “Youtube plugin version : 0.1.0 Update 22/08/2019”
Did you install the one from the “official” repository and not the one which I put up here?
The official one has been broken for quite a while and will not work. You need to use the one I provided and follow the instructions to create a Google API key before using it. Or you could wait for the Volumio team to update their plugin which they say will be available in around 20 days.
Instructions for creating the Google API key can be found here
You’re right, it’s the official plugin. I’ll try your version. It might be good to remove the official plugin and put yours with custom instruction in place.
Hi TonyK and others who are having recent problems with playing YouTube tracks,
The attached update should solve this problem. To update your existing YouTube plugin, download the attached zip file to your Volumio device, extract it to some directory, then:
If that doesn’t work, try uninstalling the existing YouTube plugin first, then:
As usual, let me know if there are any issues with this version.
Only one thing to mention: The Client-Secret field should be treated as password field. so the Secret should be stored encrypted. It is just a mention, because we are in LAN (which is hopefully trustworthy) and there is no TLS encryption.
Do you have any information when the plugin is officially available in that kind of state?
I’ll consider using password fields for the credentials section in the plugin settings, but in the end those credentials will still be stored as plain text in the backend. The ‘****’ password fields are only good for preventing people from snooping behind your back and getting your API keys when you access the plugin settings.
So why don’t we encrypt the credentials before storing them to disk? The reason is, there’s really no point in encrypting the password before writing it to the configuration file. Volumio is open source and the password could easily be obtained by reversing the encryption process. If you understand the process in which Chrome, Firefox, IE, etc. store user passwords locally, you’d be surprised at how easy it is to fetch those passwords back (interesting read: http://raidersec.blogspot.com/2013/06/how-browsers-store-your-passwords-and.html)
That said, you should generally be safe as long as you don’t share the password to the ‘volumio’ (and of course ‘root’) user account with other people, and those who have access to your LAN are trustworthy (i.e. they won’t sniff the network to get your API keys). Also, if you set up your YouTube API credentials correctly, then YouTube read-only access is allowed and the worst-case scenario is that your daily API quota gets eaten up. Furthermore, If you found someone else is using your credentials you can just delete them from your Google developer console and set up new ones.
As far as the official plugin is concerned, unfortunately I do not have any say in what will be included, when it will be released, etc. I have no ties nor communication with the Volumio team so it is entirely up to them to decide what to do with the plugin. Being opensource, they are of course free to pull code from my Github if they wish. @michelangelo did say a few posts back that they will be releasing one soon, so let’s see what improvements that will entail.
I registered me to say a special thanks to you all and especially to patrickkfkan!
Having Christmas music from youtube tonight
The only issue I had, I downloaded the zip plugin in te same folder where I wanted to exctract it.
That threw an error while installing.
But fixed now.
Firstly, thank you for your hard work and contribution to Volumio community.
As u said, we can compile the latest version of MPD to resolve “2/3 cut off” issue of Youtube plugin. So, can you guide me how to compile the latest version of MPD? All my try from google is all failed
Hi Patrick, thanks for the workaround. Unfortunately, the youtube plugin does not start (error: can not start plugin) after installation based on your guideline. I have Volumio version 2.555. I could setup all the credentials needed in googleapi, but now I never reach the point of being able to put in the credentials. If I install manually the “official” youtube plugin, the plugin starts - but no code, as is known. Any suggestions. Thanks and best Regards
Andres
I’m having trouble granting read only access for Volumio. When going to settings to acquire a code to supply to google devices, no code appears. How do I get the plugging to provide a code number?
I need to polish up my build scripts before making them available. Give me 1-2 days.
What device are you using? I’ve only tested mine on an ARM device, but not the X86. I do have one compiled for the x86 but haven’t got around to testing it yet (need to get a spare x86 or maybe setup at VM to test it).
Could you check your Volumio log and see if there are any error messages when you load the plugin?
I am using version 2.657 , so I’m not sure if it’s backwards compatible with 2.555. Is it possible for you to upgrade your Volumio ? Maybe use another SD card for testing?
I have posted version 0.21.16 of MPD in this thread, which should solve the YouTube 2/3 playback problem. Not sure if it will break other things, though. Purely experimental!
I am trying another (lighter) approach to solving the 2/3 problem but it could take a while (not much time recently).
(only not sure why it didn’t come back to a normal command-line thing *sorry for being vague, had to restart volumio from the user interface since typing in ‘volumio vrestart’ didn’t do anything after the ‘Status :Succesfully updated plugin’)
Happy 2020! Hope Volumio will continue to be awesome!