PDA

View Full Version : Announce: YouTube Plugin



Pages : 1 2 3 [4]

Man in a van
2016-07-05, 11:50
It works perfectly, not: Missing YouTube API key (see settings)


What is your problem?

karlek
2016-07-05, 12:16
He has neither an API key nor the motivation to read how to get one.

Man in a van
2016-07-05, 13:18
He has neither an API key nor the motivation to read how to get one.

I know :)

Just trying to get the *** to either shut up or ask for some help instead of whining all the time :)

(how yer doin?)

atb

ronnie

karlek
2016-07-05, 15:26
:D
( I'm fine thanks. Jogglers still not working because those handymen all over and around the house make me "gags". New roof, first floor shall be for the kids, new heating... But all are healthy and wealthy! )

philippe_44
2016-07-05, 16:12
using your gmail account
go to https://console.developers.google.com/apis/api/youtube/overview
click "Create a project" if you don't have any
in the next screen, go to "credentials"
click on "create credentials", select "API key" and then choose "Browser key"
click "create" and copy the key
go back to https://console.developers.google.com/apis/api/youtube/overview
click "enable"
paste the key in the YT plugin settings

-or-

find somebody that will donate his key (that works fine as well, keys are per application don'y have to be per user)

Zombie
2016-07-05, 23:14
I'm not sure I'm following
It's the same error message. I removed Youtube, added the repository address, but no change...

Man in a van
2016-07-06, 02:02
using your gmail account
go to https://console.developers.google.com/apis/api/youtube/overview
click "Create a project" if you don't have any
in the next screen, go to "credentials"
click on "create credentials", select "API key" and then choose "Browser key"
click "create" and copy the key
go back to https://console.developers.google.com/apis/api/youtube/overview
click "enable"
paste the key in the YT plugin settings

-or-

find somebody that will donate his key (that works fine as well, keys are per application don'y have to be per user)

That's pretty much the way to do it, check your pm for a link with pictures :p

atb

Ronnie.

Zombie
2016-07-06, 02:12
Thanks. I get this: SSL required (try to install it using CPAN and/or on Linux do "sudo apt-get install libio-socket-ssl-perl libnet-ssleay-perl")
I hope I can live without YouTube or a degree in UNIX programming



paste the key in the YT plugin settings

Man in a van
2016-07-06, 02:28
Thanks. I get this: SSL required (try to install it using CPAN and/or on Linux do "sudo apt-get install libio-socket-ssl-perl libnet-ssleay-perl")
I hope I can live without YouTube or a degree in UNIX programming


What do you have LMS install on?

Zombie
2016-07-06, 02:34
What do you have LMS install on?

Netgear ReadyNAS Ultra 2, the file is logitechmediaserver-7.9.0-1399649268-i386-readynas.bin

Man in a van
2016-07-06, 02:38
I've finished the changes to use the webm file format instead of the deprecated flv. I've put it in the dev repository only


http://tenet.dl.sourceforge.net/project/lms-youtube/dev/repo-sf.xml

It's still early days and the addition of the possibility to seek in webm created me a lot of grief, so there might still be some cases where this will lockup LMS, sorry.

This version requires the calculation of a CRC which can take a fair bit of CPU, so the UI might be less reponsive on slow platform, I'll see if I can improve that, depending on comments

Feedback welcome

just added the code to the repository, did not bother to delete the previous plugin, restarted LMS and


20712

Well done ;)

Ronnie

Man in a van
2016-07-06, 02:46
Netgear ReadyNAS Ultra 2, the file is logitechmediaserver-7.9.0-1399649268-i386-readynas.bin

That's me buggered then :o

There is an add-on to enable SSH into the Nas

http://kb.netgear.com/app/answers/detail/a_id/24551/~/add-ons-for-raidiator-4.2-(x86)?cid=wmt_netgear_organic


But as I don't have one I can't advise.

Maybe ask on the Netgear forums, or start a new thread here, or hope someone comes along to explain.

I have done it on a raspberry pi many times, it's not difficult, just needs a little time and patience when one has a first attempt :).

atb

Ronnie.

gegen
2016-07-06, 03:15
I've finished the changes to use the webm file format instead of the deprecated flv. I've put it in the dev repository only


http://tenet.dl.sourceforge.net/project/lms-youtube/dev/repo-sf.xml

It's still early days and the addition of the possibility to seek in webm created me a lot of grief, so there might still be some cases where this will lockup LMS, sorry.

This version requires the calculation of a CRC which can take a fair bit of CPU, so the UI might be less reponsive on slow platform, I'll see if I can improve that, depending on comments

Feedback welcome

Working great on RPi2 using max2play Raspbian Wheezy and LMS 7.9 (May 1st 2016)..... sound seems better quality(?) and seeking within song works fine.

On a RPi3 using max2play Raspbian Jessie and LMS 7.9 (Jul 3rd 2016)..... songs play fine but seeking within song does not work.

A big thanks for getting this going again and as I'm using RPi2/Wheezy working great!!!!

philippe_44
2016-07-06, 23:15
Interesting that seeking does not work on Jessie. Was it seeking in a very large file? There is a difficulty with 64 bits integer handling, but that only happens while using files of more than 4GB. If you happen to have the time, I could use the log that is generated when you set the YouTube plugin log to 'info'


Envoyé de mon iPad en utilisant Tapatalk

philippe_44
2016-07-06, 23:23
I've never used the YouTube plugin. All I know is that Triode re-used the Flash player code from BBCPlayer to play Youtube Flash streams..

I've seen reference that Youtube uses MPEG-DASH whenever a browser is HTML5 compliant. I've (badly) implemented a limited form of MPEG-DASH with streaming MP4 audio for BBCiPlayer as BBC have stopped using Flash.
Do you know if MPEG-DASH is used ?

I was looking at the formats yesterday and yes, in most of the cases, there MP4-dash and Webm-dash supported.

I've gone the normal http download route using Webm. I'm not sure that how I handle some aspect of seeking by forcing and playing with a keep-alive http session is very orthodox, but it works ;-) (although Michael might ban me forever)


Envoyé de mon iPad en utilisant Tapatalk

gegen
2016-07-08, 03:53
Interesting that seeking does not work on Jessie. Was it seeking in a very large file? There is a difficulty with 64 bits integer handling, but that only happens while using files of more than 4GB. If you happen to have the time, I could use the log that is generated when you set the YouTube plugin log to 'info'


Envoyé de mon iPad en utilisant Tapatalk

Hi Phillippe
Here is what was in the log hope it's what you need.....I played an 11min track first pausing it and also trying to seek track returns to start.
The second track was 1hour 24 min long same thing.

[16-07-08 11:28:27.0047] Plugins::SrvrPowerCtrl::Util::SystemExecCmd (851) SqueezeLite: Office HiFiBerry via SrvrPowerCtrl executing command: sudo /sbin/shutdown -h now
2016-07-08 11:28:27 squeezeboxserver_safe stopped.
[16-07-08 11:28:31.3194] Slim::Schema::forceCommit (2149) Warning: Trying to commit transactions before DB is initialized!
2016-07-08 11:28:33 squeezeboxserver_safe started.
[16-07-08 11:28:38.2291] main::init (384) Starting Logitech Media Server (v7.9.0, 1467524616, Sun Jul 3 06:19:42 UTC 2016) perl 5.020002 - arm-linux-gnueabihf-thread-multi-64int
[16-07-08 11:42:19.2579] Slim::Control::Request::execute (1888) Error: While trying to run function coderef [Slim::Control::Commands::playcontrolCommand]: [Can't modify non-lvalue subroutine call at /var/lib/squeezeboxserver/cache/InstalledPlugins/Plugins/YouTube/ProtocolHandler.pm line 112.
]
[16-07-08 11:42:19.2600] Slim::Web::JSONRPC::requestMethod (413) Request failed with error: Bad dispatch!
[16-07-08 11:42:30.4444] Slim::Control::Request::execute (1888) Error: While trying to run function coderef [Slim::Control::Commands::timeCommand]: [Can't modify non-lvalue subroutine call at /var/lib/squeezeboxserver/cache/InstalledPlugins/Plugins/YouTube/ProtocolHandler.pm line 112.
]
[16-07-08 11:42:30.4453] Slim::Web::JSONRPC::requestMethod (413) Request failed with error: Bad dispatch!
[16-07-08 11:45:39.2235] Slim::Control::Request::execute (1888) Error: While trying to run function coderef [Slim::Control::Commands::timeCommand]: [Can't modify non-lvalue subroutine call at /var/lib/squeezeboxserver/cache/InstalledPlugins/Plugins/YouTube/ProtocolHandler.pm line 112.
]
[16-07-08 11:45:39.2245] Slim::Web::JSONRPC::requestMethod (413) Request failed with error: Bad dispatch!

philippe_44
2016-07-08, 21:38
Hi Phillippe
Here is what was in the log hope it's what you need.....I played an 11min track first pausing it and also trying to seek track returns to start.
The second track was 1hour 24 min long same thing.

[16-07-08 11:28:27.0047] Plugins::SrvrPowerCtrl::Util::SystemExecCmd (851) SqueezeLite: Office HiFiBerry via SrvrPowerCtrl executing command: sudo /sbin/shutdown -h now
2016-07-08 11:28:27 squeezeboxserver_safe stopped.
[16-07-08 11:28:31.3194] Slim::Schema::forceCommit (2149) Warning: Trying to commit transactions before DB is initialized!
2016-07-08 11:28:33 squeezeboxserver_safe started.
[16-07-08 11:28:38.2291] main::init (384) Starting Logitech Media Server (v7.9.0, 1467524616, Sun Jul 3 06:19:42 UTC 2016) perl 5.020002 - arm-linux-gnueabihf-thread-multi-64int
[16-07-08 11:42:19.2579] Slim::Control::Request::execute (1888) Error: While trying to run function coderef [Slim::Control::Commands::playcontrolCommand]: [Can't modify non-lvalue subroutine call at /var/lib/squeezeboxserver/cache/InstalledPlugins/Plugins/YouTube/ProtocolHandler.pm line 112.
]
[16-07-08 11:42:19.2600] Slim::Web::JSONRPC::requestMethod (413) Request failed with error: Bad dispatch!
[16-07-08 11:42:30.4444] Slim::Control::Request::execute (1888) Error: While trying to run function coderef [Slim::Control::Commands::timeCommand]: [Can't modify non-lvalue subroutine call at /var/lib/squeezeboxserver/cache/InstalledPlugins/Plugins/YouTube/ProtocolHandler.pm line 112.
]
[16-07-08 11:42:30.4453] Slim::Web::JSONRPC::requestMethod (413) Request failed with error: Bad dispatch!
[16-07-08 11:45:39.2235] Slim::Control::Request::execute (1888) Error: While trying to run function coderef [Slim::Control::Commands::timeCommand]: [Can't modify non-lvalue subroutine call at /var/lib/squeezeboxserver/cache/InstalledPlugins/Plugins/YouTube/ProtocolHandler.pm line 112.
]
[16-07-08 11:45:39.2245] Slim::Web::JSONRPC::requestMethod (413) Request failed with error: Bad dispatch!

Strange indeed. Would you mind setting the logging level of the YT plugin to 'info' (in LMS settings, advanced, logging) and zip/post the result?

gegen
2016-07-09, 03:10
Strange indeed. Would you mind setting the logging level of the YT plugin to 'info' (in LMS settings, advanced, logging) and zip/post the result?

Hi Philippe hope this time the log has what you need.

Regards.

Man in a van
2016-07-09, 05:39
The following are the steps I used to install the SSL perl modules on my QNap NAS install of the squeezebox server. Note the /share/MD0_DATA part of the path may be different on your server

#ipkg install openssl openssl-dev
#ipkg install make
#ipkg install gcc

#cd /share/MD0_DATA/.qpkg/LogitechMediaServer/
#mkdir tmp
#cd tmp

#wget http://search.cpan.org/CPAN/authors/id/A/AB/ABH/Mozilla-CA-20141217.tar.gz
#tar zxvf Mozilla-CA-20141217.tar.gz
#cd Mozilla-CA-20141217
#../../bin/perl Makefile.PL
#make
#make install
#cd ..


#wget http://search.cpan.org/CPAN/authors/id/M/MI/MIKEM/Net-SSLeay-1.68.tar.gz
#tar zxvf Net-SSLeay-1.68.tar.gz

#cd Net-SSLeay-1.68
#OPENSSL_PREFIX=/opt ../../bin/perl Makefile.PL
#make
#make install
#cd ..


#wget http://search.cpan.org/CPAN/authors/id/S/SU/SULLR/IO-Socket-SSL-2.012.tar.gz
#tar zxvf IO-Socket-SSL-2.012.tar.gz
#cd IO-Socket-SSL-2.012
#../../bin/perl Makefile.PL
#make
#make install
#cd ..


After doing this, test that it works by doing

# /share/MD0_DATA/.qpkg/LogitechMediaServer/bin/perl
use IO::Socket::SSL;

That should not give any errors if everything was successful.


Thought I would give this a bash today on my old TS 121.

I only have partial success, could some one tell me what to do next please?

Thanks

Ronnie



Mozilla-CA-20141217/lib/Mozilla/CA/cacert.pem
[/share/HDA_DATA/.qpkg/LogitechMediaServer/tmp] # cd Mozilla-CA-20141217
[/share/HDA_DATA/.qpkg/LogitechMediaServer/tmp/Mozilla-CA-20141217] # ../../bin/perl Makefile.PL
-sh: ../../bin/perl: No such file or directory
[/share/HDA_DATA/.qpkg/LogitechMediaServer/tmp/Mozilla-CA-20141217] # make
make: *** No targets specified and no makefile found. Stop.
[/share/HDA_DATA/.qpkg/LogitechMediaServer/tmp/Mozilla-CA-20141217] # make install
make: *** No rule to make target `install'. Stop.

philippe_44
2016-07-11, 07:35
Hi Philippe hope this time the log has what you need.

Regards.

Thanks - With some help, I think it's now solved in 0.40.1

adamdea
2016-07-11, 07:53
Thought I would give this a bash today on my old TS 121.

I only have partial success, could some one tell me what to do next please?

ThanksI hope someone manages to help Ronnie. I am a fellow qnap user but have no idea how to work it from command line

Man in a van
2016-07-11, 08:54
Thanks for the bump, but it's not life threatening or anything ;)

Mostly these days I run LMS on a big joggler and stream from a SBT and a BOOM or two.

Still play about with the pi but I have recently fallen on the dark side and purchased a used 2012 mac mini (I'm now a lost soul :D )

atb

Ronnie

adamdea
2016-07-11, 10:15
Thanks for the bump, but it's not life threatening or anything ;)

Mostly these days I run LMS on a big joggler and stream from a SBT and a BOOM or two.

Still play about with the pi but I have recently fallen on the dark side and purchased a used 2012 mac mini (I'm now a lost soul :D )

atb

RonnieI spose they look nice.

Man in a van
2016-07-11, 12:26
I spose they look nice.


Bodacious, dude !! :cool:

gegen
2016-07-12, 12:09
Thanks - With some help, I think it's now solved in 0.40.1

Hi Philippe

Yes now working on my RPi 3 Jessie setup ...thanks very much ;)

dsca
2016-07-13, 13:16
Hey,

thank ya, 4 the plugin - nice thing. but unfortunately its not working on my site.
Have installed Logitech Media Server Version: 7.7.5 on ZBOX-MiniPC (Windows 8) and get a plain page if i try to play any video or id.

In Settings i setup the api-key. (browser key needed, or iam wrong?)

Any suggestions?

philippe_44
2016-07-14, 06:41
Hey,

thank ya, 4 the plugin - nice thing. but unfortunately its not working on my site.
Have installed Logitech Media Server Version: 7.7.5 on ZBOX-MiniPC (Windows 8) and get a plain page if i try to play any video or id.

In Settings i setup the api-key. (browser key needed, or iam wrong?)

Any suggestions?

Do you have a normal screen before you do a search?

cw-kid
2016-07-14, 11:28
Hi

How do you get in to the plugins settings to add your API Key ?

I have Logitech Media Server Version: 7.8.1 - 1467273631 running on a WHS 2011 server.

The Youtube plugin says its version 0.40.1

I tried in Chrome and IE browsers but there is no settings option listed next to the Youtube plugin etc.
I also tried restarting the Squeezebox server service.

Thank you.

EDIT: I found it now sorry, on the Advanced tab then change the drop down menu to Youtube.

SlimChances
2016-07-14, 11:41
Look under Settings/YouTube

cw-kid
2016-07-14, 11:46
Hi

My web GUI looks nothing like your screen shot have you skinned it or something?

Anyways I found it under the Advanced tab and by changing the drop down list to Youtube.

Its working after entering the API Key, I can search for an artist and play one of their "videos" and the audio is playing on the Squeezebox client.

But how do I play the playlists I have created in my Youtube account ?

Thanks.

dsca
2016-07-14, 11:49
Do you have a normal screen before you do a search?

what do you mean with normal screen?

cw-kid
2016-07-14, 12:11
If your Youtube playlist is public you can use that "Playlist Search" option in the plug-in as shown in the above screen shot, this works I found a public playlist my daughter created on my Youtube account and its playing and also is currently sync'd in two rooms.

But my own playlists I created were private one guess it won't work for these, I thought the plugin might integrate more with my own Youtube account but seems it does not work that way.

My daughter is having a house party and wants to create a Youtube playlist and have all the Squeezeboxes in the house (Kodi OpenElec HTPCs running SqueezeLite) sync'd through out the house, so seems it should work as long as the playlist is made public etc.

Thanks

philippe_44
2016-07-14, 13:08
what do you mean with normal screen?

Yes - so when you search for music and use a simple keyword like 'jazz', what does it say. If you don't mind, can we continue on that thread? http://forums.slimdevices.com/showthread.php?105840-ANNOUNCE-YouTube-Plugin-(API-v3)

philippe_44
2016-07-14, 13:09
If your playlist is public you can use that "Search Playlist" option in the plug-in as shown in the above screen shot, this works I found a public playlist my daughter created on my Youtube account and its playing and also is currently sync'd in two rooms.

But my own playlists I created were private one guess it won't work for these, I thought the plugin might integrate more with my own Youtube account but seems it does not work that way.

My daughter is having a house party and wants to create a Youtube playlist and have all the Squeezeboxes in the house (Kodi OpenElec HTPCs running SqueezeLite) sync'd through out the house, so seems it should work as long as the playlist is made public etc.

Thanks

I'll add that to my todo list

cw-kid
2016-07-14, 13:26
I'll add that to my todo list

Sounds good thanks.

Tip: Once you have found your Youtube public playlist via the plugins "Playlist Search" option, you can then press the heart button on the playlist in the LMS web GUI to add that Youtube playlist to your favourites. This makes it much easier to find it again next time.

I am looking for a new Squeezebox Controller app for my Android Marshmallow tablet, what app do the experts recommend?

Thanks.

cw-kid
2016-07-14, 13:39
One thing I am seeing now.

My daughter is still currently creating her Youtube playlist and adding new songs to it etc.

When I was searching for this playlist in LMS web GUI and added it to my favourites there were 22 videos / songs in the playlist.

I asked my daughter to added one more so there is now 23 in total.

However in LMS the playlist still only shows 22 and is not showing the last added video / song.

Is it dynamic and meant to update automatically or do you have to delete some cache or something ?

Also in my Youtube account in my web browser I renamed an existing public playlist, however when now searching for its new name in the plugin it is not displayed. It is however still showing up under its old name. Seems there is a lag or something.

Thanks

cw-kid
2016-07-14, 13:52
Hi

Another thing that doesn't look quite right ?

On the screen shot you can see the Youtube Party Playlist that I added to my favourites, if I play it, 22 tracks do then appear and play OK, but not 23 tracks as already stated.

However the URL shown for the playlist in the LMS GUI doesn't work or open:

ytplaylist://playlistId=PLojGVqhFKKs0BUCZ0b4F8Ye__ApBRdBGo

This URL works however.

https://www.youtube.com/playlist?list=PLojGVqhFKKs0BUCZ0b4F8Ye__ApBRdBGo

Is this how its meant to be ?

I guess it doesn't really matter too much that the URL displayed doesn't work if you click on it, but just an observation.

Cheers

kidstypike
2016-07-14, 14:02
In your last picture, to the right of the probress bar, it displays "(5 of 23)" ?

philippe_44
2016-07-14, 14:03
Hi

Another thing that doesn't look quite right ?

On the screen shot you can see the Youtube Party Playlist that I added to my favourites, if I play it, 22 tracks do then appear and play OK, but not 23 tracks as already stated.

However the URL shown for the playlist in the LMS GUI doesn't work or open:

ytplaylist://playlistId=PLojGVqhFKKs0BUCZ0b4F8Ye__ApBRdBGo

This URL works however.

https://www.youtube.com/playlist?list=PLojGVqhFKKs0BUCZ0b4F8Ye__ApBRdBGo

Is this how its meant to be ?

I guess it doesn't really matter too much that the URL displayed doesn't work if you click on it, but just an observation.

Cheers

Its due to caching or YT responses. It speeds up tremendously the process but updates are not refreshed till the cache expires. I discussed that a while ago with Michael and trying to flush it was complicated so I gave up adding that option


Envoyé de mon iPad en utilisant Tapatalk

cw-kid
2016-07-14, 14:10
In your last picture, to the right of the probress bar, it displays "(5 of 23)" ?

Didn't notice that ! I just saw that track number 23 which is called "New Future House Music 2016 - Live Video Mix" was not beneath track number 22 called "Flume - Never Be Like You feat. Kai"

I will double check the song list again to see.

However LMS keeps jamming up at the moment and when I try and restart the server service windows says:

"Error 1053: The service did not respond to the start or control request in a timely fashion"

I have to reboot the server to get it back.

Thanks

cw-kid
2016-07-14, 14:11
Its due to caching or YT responses. It speeds up tremendously the process but updates are not refreshed till the cache expires. I discussed that a while ago with Michael and trying to flush it was complicated so I gave up adding that option



So how long does it normally take for the cache to expire? And then presumably after that it refreshes / updates the playlist etc.

Thanks

dsca
2016-07-14, 14:20
Yes - so when you search for music and use a simple keyword like 'jazz', what does it say. If you don't mind, can we continue on that thread? http://forums.slimdevices.com/showthread.php?105840-ANNOUNCE-YouTube-Plugin-(API-v3)

then i get this...
have already tried with various browsers, FF, Chrome, IE... all the same...
should i update my LMS?
20757

philippe_44
2016-07-14, 14:30
then i get this...
have already tried with various browsers, FF, Chrome, IE... all the same...
should i update my LMS?
20757

Likely because I know there was something special for older version in the plugin when I took over it and I removed that part. I run a 7.7.6 and a 7.9 and it work on both


Envoyé de mon iPad en utilisant Tapatalk

philippe_44
2016-07-14, 14:46
So how long does it normally take for the cache to expire? And then presumably after that it refreshes / updates the playlist etc.

Thanks

Cache is 24 hours


Envoyé de mon iPad en utilisant Tapatalk

cw-kid
2016-07-14, 15:12
In your last picture, to the right of the probress bar, it displays "(5 of 23)" ?

Despite the fact it says (X of 23) tracks in the playlist. If I actually count them in the list there is only 22 in there.

And the number 23 track that was added on Youtube is NOT listed.

I will wait the 24 hours for the cache and see if its appears tomorrow ?

Thanks.

askvictor
2016-07-14, 15:28
I have an Android app (SendToSqueezebox) that basically flings a URL from android to a squeezebox. For some protocols (including youtube), it does some mangling of the URL so that the squeezebox can handle it.

Currently it works fine for single youtube clips, and I can probably get it working for playlists easily enough, but I'd like to be able to send a youtube ID for a single clip (or possibly a search term, but deal with that later on), and get that to start a playlist on squeezebox. Is this currently possible with the youtube:// protocol? If not, could it be added?

Are there any other forums for dev work on this plugin, or is this the spot?

philippe_44
2016-07-14, 15:35
Despite the fact it says (X of 23) tracks in the playlist. If I actually count them in the list there is only 22 in there.

And the number 23 track that was added on Youtube is NOT listed.

I will wait the 24 hours for the cache and see if its appears tomorrow ?

Thanks.

Yes, it should. If you are in a hurry and a bit technical look at a file named plugin.pm and change a parameter at the beginning that is 24*3600 to whatever you want


Envoyé de mon iPad en utilisant Tapatalk

philippe_44
2016-07-14, 15:42
I have an Android app (SendToSqueezebox) that basically flings a URL from android to a squeezebox. For some protocols (including youtube), it does some mangling of the URL so that the squeezebox can handle it.

Currently it works fine for single youtube clips, and I can probably get it working for playlists easily enough, but I'd like to be able to send a youtube ID for a single clip (or possibly a search term, but deal with that later on), and get that to start a playlist on squeezebox. Is this currently possible with the youtube:// protocol? If not, could it be added?

Are there any other forums for dev work on this plugin, or is this the spot?

This is the spot, I'm the developer since mid last year. Just to be sure I understand you, you want to send a playlist ID (in the sense of a YT playlist, not a LMS playlist) and you want that to be expanded by the plugin?


Envoyé de mon iPad en utilisant Tapatalk

askvictor
2016-07-14, 16:08
This is the spot, I'm the developer since mid last year. Just to be sure I understand you, you want to send a playlist ID (in the sense of a YT playlist, not a LMS playlist) and you want that to be expanded by the plugin?


I do want to do this as well (I thought this was already possible, but I just haven't had a go a implementing it on my end yet).

What I actually want is to send a video ID, get that converted to a YT playlist, then expanded into a LMS playlist. All via the youtube:// LMS protocol.

philippe_44
2016-07-14, 17:04
I do want to do this as well (I thought this was already possible, but I just haven't had a go a implementing it on my end yet).

What I actually want is to send a video ID, get that converted to a YT playlist, then expanded into a LMS playlist. All via the youtube:// LMS protocol.

Yes, this is what I have. I've implemented another protocol handler called ytplaylist:// and you can send a YT ID which is either a channel or a playlist and it will be expanded into a LMS playlist. You just have to send the proper syntax. I had to do that to be able to have YT channels and playlists being added to favorites


Envoyé de mon iPad en utilisant Tapatalk

askvictor
2016-07-14, 18:34
Yes, this is what I have. I've implemented another protocol handler called ytplaylist:// and you can send a YT ID which is either a channel or a playlist and it will be expanded into a LMS playlist. You just have to send the proper syntax. I had to do that to be able to have YT channels and playlists being added to favorites

I had noticed that - but I'd like to be able to use send a YT ID of a single _video_ to this protocol handler, and have it then generate a playlist.

philippe_44
2016-07-14, 18:53
I had noticed that - but I'd like to be able to use send a YT ID of a single _video_ to this protocol handler, and have it then generate a playlist.

Ah then I did not understand - on what criteria shall the playlist be generated? All I have is a single video ID, where shall the other ones come from? Or I have totally misunderstood you


Envoyé de mon iPad en utilisant Tapatalk

askvictor
2016-07-14, 23:46
Ah then I did not understand - on what criteria shall the playlist be generated? All I have is a single video ID, where shall the other ones come from? Or I have totally misunderstood you


I was imagining using the same mechanism as "Related to URL or Video ID" uses, but rather than return search results, it puts them all into a playlist. Another possibility might be however Youtube creates the "Up Next" Autoplay playlist - though I'm not sure if this is the same as "related to" search, or if not, if it is accessible via the API.

philippe_44
2016-07-15, 06:54
Couldn't you do like iPeng and remote controls do, using the API that LMS provides (I never looked at how it works, TBH) to access to plugin features so that you can request the YT plugin to search for 'related url' and then, you ask YT to play the 1st result, this is 'all songs' and it will have created your playlist. No need to handle all the returned songs, only the 1st one matters


Envoyé de mon iPad en utilisant Tapatalk

doubleugk
2016-07-15, 13:30
I've finished the changes ...

I missed the update notice and discovered the fix today :-) :-) :-)

It's great to have guys like you around helping to enjoy life !!!

philippe_44
2016-07-16, 10:06
Couldn't you do like iPeng and remote controls do, using the API that LMS provides (I never looked at how it works, TBH) to access to plugin features so that you can request the YT plugin to search for 'related url' and then, you ask YT to play the 1st result, this is 'all songs' and it will have created your playlist. No need to handle all the returned songs, only the 1st one matters


Envoyé de mon iPad en utilisant Tapatalk

pippin
2016-07-16, 16:40
You usually can't directly access plugin features through the CLI API (unless the plugin explicitly provides commands for that), you can only access the menu structure and drill down through it.
One of these menus is globalsearch but that still has several levels to go until you end up with a playlist

And if you work around that the slightest change in the plugin's menu structure will completely break your code

philippe_44
2016-07-16, 18:22
How do you do that in iPeng ? I mean the fact the it appears in the apps list and you can use it as you do in the web UI? Sorry for the dumb question

askvictor
2016-07-18, 14:38
Couldn't you do like iPeng and remote controls do, using the API that LMS provides (I never looked at how it works, TBH) to access to plugin features so that you can request the YT plugin to search for 'related url' and then, you ask YT to play the 1st result, this is 'all songs' and it will have created your playlist. No need to handle all the returned songs, only the 1st one matters

I've been using the protocol handler as the API; simpler to work with than a raw socket interface, and has covered all features so far (except for this one :)

Goti
2016-07-19, 04:04
Thanks for the plugin.

But it was difficult to me to understand the API Key,
Maybe a FAQ on the first post or directely in the plugin ?

Gautier

philippe_44
2016-07-19, 06:44
Thanks for the plugin.

But it was difficult to me to understand the API Key,
Maybe a FAQ on the first post or directely in the plugin ?

Gautier

It's here http://forums.slimdevices.com/showthread.php?105840-ANNOUNCE-YouTube-Plugin-(API-v3) and that's why I've started a new thread

septemous
2016-08-13, 11:36
Hello Phillipe,

Thanks for all the help here.
I've been going through the forum, and am not quite sure how to fix my install?


I am not getting sound outputting and the youtube file resets back to 0:00 after 6 seconds max ??

Ideas welcome.

info and log below.
Thank you
S_

YouTube Plugin version 0.41

System name: antipodes1
VortexBox SW Version: 2.3
Linux OS Version: Fedora release 20 (Heisenbug)Logitech Media Server Version: 7.8.0 - 1395395852 @ Tue May 6 10:42:37 EDT 2014
Hostname: antipodes1
Server IP Address: 192.168.0.5
Server HTTP Port Number: 9000
Operating system: Red Hat - EN - utf8
Platform Architecture: i686-linux
Perl Version: 5.16.3 - i386-linux-thread-multi
Database Version: DBD::SQLite 1.34_01 (sqlite 3.7.7.1)
Total Players Recognized: 1

at /usr/lib/perl5/vendor_perl/Slim/Networking/Async/HTTP.pm line 86.
[16-08-13 19:46:45.3258] Slim::Utils::Misc::msg (1311) Warning: [19:46:45.3249] ************************************************** *****************
Using the default of SSL_verify_mode of SSL_VERIFY_NONE for client
is deprecated! Please set SSL_verify_mode to SSL_VERIFY_PEER
together with SSL_ca_file|SSL_ca_path for verification.
If you really don't want to verify the certificate and keep the
connection open to Man-In-The-Middle attacks please set
SSL_verify_mode explicitly to SSL_VERIFY_NONE in your application.
************************************************** *****************
at /usr/lib/perl5/vendor_perl/Slim/Networking/Async/HTTP.pm line 86.
[16-08-13 19:46:51.5530] Slim::Utils::Misc::msg (1311) Warning: [19:46:51.5522] ************************************************** *****************
Using the default of SSL_verify_mode of SSL_VERIFY_NONE for client
is deprecated! Please set SSL_verify_mode to SSL_VERIFY_PEER
together with SSL_ca_file|SSL_ca_path for verification.
If you really don't want to verify the certificate and keep the
connection open to Man-In-The-Middle attacks please set
SSL_verify_mode explicitly to SSL_VERIFY_NONE in your application.
************************************************** *****************
at /usr/lib/perl5/vendor_perl/Slim/Networking/Async/HTTP.pm line 86.
[16-08-13 19:46:52.2356] Slim::Utils::Misc::msg (1311) Warning: [19:46:52.2348] ************************************************** *****************
Using the default of SSL_verify_mode of SSL_VERIFY_NONE for client
is deprecated! Please set SSL_verify_mode to SSL_VERIFY_PEER
together with SSL_ca_file|SSL_ca_path for verification.
If you really don't want to verify the certificate and keep the
connection open to Man-In-The-Middle attacks please set
SSL_verify_mode explicitly to SSL_VERIFY_NONE in your application.
************************************************** *****************
at /usr/lib/perl5/vendor_perl/Slim/Player/Song.pm line 463.
[16-08-13 19:46:52.4169] Slim::Player::Song::open (471) Warning: stream failed to open [youtube://www.youtube.com/v/PsYxwPCGxy8].

septemous
2016-08-14, 11:44
I used the Debug setting to get a more verbose log file.
Hope this helps.

Thank you
S_

20929

doubleugk
2016-08-15, 14:01
Isn't it that overflows could lead to further trouble?


[16-08-15 22:35:10.5340] Slim::Utils::Misc::msg (1244) Warning: [22:35:10.5337] Integer overflow in hexadecimal number at C:\ProgramData\Squeezebox\Cache\InstalledPlugins/Plugins/YouTube/ProtocolHandler.pm line 777.

philippe_44
2016-08-15, 23:09
I used the Debug setting to get a more verbose log file.
Hope this helps.

Thank you
S_

20929

Try editing the ProtocolHandler.pm (in the plugins directory /var/lib/squeezeebox/cache/InstalledPlugins/plugin/YouTube (from memory) and on line after 87, add "SSL_verify_mode => SSL_VERIFY_NONE" (do not use "")

septemous
2016-08-16, 13:56
Try editing the ProtocolHandler.pm (in the plugins directory /var/lib/squeezeebox/cache/InstalledPlugins/plugin/YouTube (from memory) and on line after 87, add "SSL_verify_mode => SSL_VERIFY_NONE" (do not use "")

Hi P_

I have a friend helping me.

Could you please tell us what is on line 87 (after which the new line goes).
We are not seeing line numbers and we want be sure where it goes.

Thank you!
Ethan

Jeff07971
2016-08-16, 14:44
Hi P_

I have a friend helping me.

Could you please tell us what is on line 87 (after which the new line goes).
We are not seeing line numbers and we want be sure where it goes.

Thank you!
Ethan

20937

septemous
2016-08-16, 14:51
Thank you ..

So it should be as follows ?


SSL_startHandshake => 1,
SSL_verify_mode => SSL_VERIFY_NONE,
) or do {

Thank you !

septemous
2016-08-18, 19:05
Did not fix the problem :(

at /usr/lib/perl5/vendor_perl/Slim/Player/Song.pm line 463.
[16-08-18 21:57:35.5594] Slim::Player::Song::open (471) Warning: stream failed to open [y
outube://www.youtube.com/v/TTAU7lLDZYU].
[16-08-18 22:02:03.2156] Slim::Utils::Misc::msg (1311) Warning: [22:02:03.2148] *********
************************************************** ********
Using the default of SSL_verify_mode of SSL_VERIFY_NONE for client
is deprecated! Please set SSL_verify_mode to SSL_VERIFY_PEER
together with SSL_ca_file|SSL_ca_path for verification.
If you really don't want to verify the certificate and keep the
connection open to Man-In-The-Middle attacks please set

septemous
2016-08-19, 05:14
Set it back the way it was (I think!)



[16-08-19 08:12:45.6465] Slim::Utils::Misc::msg (1311) Warning: [08:12:45.6456] ************************************************** *****************
Using the default of SSL_verify_mode of SSL_VERIFY_NONE for client
is deprecated! Please set SSL_verify_mode to SSL_VERIFY_PEER
together with SSL_ca_file|SSL_ca_path for verification.
If you really don't want to verify the certificate and keep the
connection open to Man-In-The-Middle attacks please set
SSL_verify_mode explicitly to SSL_VERIFY_NONE in your application.
************************************************** *****************
at /usr/lib/perl5/vendor_perl/Slim/Player/Song.pm line 463.
[16-08-19 08:12:45.8509] Plugins::YouTube::ProtocolHandler::requestString (185) cue: , time:
[16-08-19 08:12:45.8819] Slim::Player::Song::open (471) Warning: stream failed to open [youtube://www.youtube.com/v/Nm-ISatLDG0].
[16-08-19 08:12:45.8989] Plugins::YouTube::ProtocolHandler::getMetadataFor (1023) getmetadata: youtube://www.youtube.com/v/Nm-ISatLDG0
[16-08-19 08:12:45.9004] Plugins::YouTube::ProtocolHandler::getMetadataFor (1037) cache hit: Nm-ISatLDG0
[16-08-19 08:12:50.5115] Plugins::YouTube::ProtocolHandler::getMetadataFor (1023) getmetadata: youtube://www.youtube.com/v/Nm-ISatLDG0
[16-08-19 08:12:50.5130] Plugins::YouTube::ProtocolHandler::getMetadataFor (1037) cache hit: Nm-ISatLDG0
[16-08-19 08:12:50.5148] Plugins::YouTube::ProtocolHandler::getMetadataFor (1023) getmetadata: youtube://www.youtube.com/v/Nm-ISatLDG0

philippe_44
2016-08-20, 16:36
Isn't it that overflows could lead to further trouble?


[16-08-15 22:35:10.5340] Slim::Utils::Misc::msg (1244) Warning: [22:35:10.5337] Integer overflow in hexadecimal number at C:\ProgramData\Squeezebox\Cache\InstalledPlugins/Plugins/YouTube/ProtocolHandler.pm line 777.

I asked michael about 64 bits platform, so this should only be a problem for 32 bits Perl versions and I'm not sure there are any. I need this 64 bits in anyway and I don't want to do manually 64 bits arithmetic using 32 bits integer.

philippe_44
2016-08-20, 16:39
Did not fix the problem :(

at /usr/lib/perl5/vendor_perl/Slim/Player/Song.pm line 463.
[16-08-18 21:57:35.5594] Slim::Player::Song::open (471) Warning: stream failed to open [y
outube://www.youtube.com/v/TTAU7lLDZYU].
[16-08-18 22:02:03.2156] Slim::Utils::Misc::msg (1311) Warning: [22:02:03.2148] *********
************************************************** ********
Using the default of SSL_verify_mode of SSL_VERIFY_NONE for client
is deprecated! Please set SSL_verify_mode to SSL_VERIFY_PEER
together with SSL_ca_file|SSL_ca_path for verification.
If you really don't want to verify the certificate and keep the
connection open to Man-In-The-Middle attacks please set

Have you tried moving to VB 2.4? I'm not sure but I think there was some issues with SSL version together with Perl in 2.3. Again, not fully sure

mherger
2016-08-21, 22:15
> I asked michael about 64 bits platform, so this should only be a problem
> for 32 bits Perl versions and I'm not sure there are any. I need this 64

There's a difference between a 64 bit build of Perl and a Perl with
support for 64 bit maths. Windows still uses a 32 bit build. But that's
the first time I hear about this problem. Did you really ask me about it?
--

Michael

philippe_44
2016-08-22, 21:36
> I asked michael about 64 bits platform, so this should only be a problem
> for 32 bits Perl versions and I'm not sure there are any. I need this 64

There's a difference between a 64 bit build of Perl and a Perl with
support for 64 bit maths. Windows still uses a 32 bit build. But that's
the first time I hear about this problem. Did you really ask me about it?
--

Michael

That was here http://forums.slimdevices.com/showthread.php?105828-a-fast-CRC32-for-Perl&p=857089&viewfull=1#post857089 and I agree, my answer was not correct, I meant handling of 64 bit integer, not a 64 bit Perl build. This warning is because I declare (from memory) a const that is 64 bits, but in all my tests, the used value is 64 bits, so I left it like that.

tiggert
2016-09-03, 12:05
Hi,
Thanks so much for continuing to work on this plugin. I really appreciate your efforts and I'm glad it's working for others.
I've just upgraded to v0.40.1 and I tried with a new API key but I can't get music from Youtube videos to play.
It seems that whatever video I try to stream I get the message:
"Problem: Can't connect to server for: "name of video"

In my logs all I see is:
E.g:
[16-09-03 19:47:28.5530] Slim::Player::Song:: open (471) Warning: stream failed to open [youtube://QGDJ75fn6Lw].
[16-09-03 19:47:56.3044] Slim::Player::Song:: open (471) Warning: stream failed to open [youtube://www.youtube.com/v/xTmIq9xZwks].

Any ideas what I'm doing wrong and how I can get it working?

I'm running LMS 7.8.1 on an oldish Raspberry Pi running Squeezplug.

Thanks.

philippe_44
2016-09-03, 13:15
Hi,
Thanks so much for continuing to work on this plugin. I really appreciate your efforts and I'm glad it's working for others.
I've just upgraded to v0.40.1 and I tried with a new API key but I can't get music from Youtube videos to play.
It seems that whatever video I try to stream I get the message:
"Problem: Can't connect to server for: "name of video"

In my logs all I see is:
E.g:
[16-09-03 19:47:28.5530] Slim::Player::Song:: open (471) Warning: stream failed to open [youtube://QGDJ75fn6Lw].
[16-09-03 19:47:56.3044] Slim::Player::Song:: open (471) Warning: stream failed to open [youtube://www.youtube.com/v/xTmIq9xZwks].

Any ideas what I'm doing wrong and how I can get it working?

I'm running LMS 7.8.1 on an oldish Raspberry Pi running Squeezplug.

Thanks.

This thread is now deprecated, see this one: http://forums.slimdevices.com/showthread.php?105840-ANNOUNCE-YouTube-Plugin-(API-v3)

Very likely the way you have created the key incorrect.

NikolajC
2016-09-03, 23:56
Worked right away on Synology 216+ NAS. Thanks!

WiredGaming
2016-10-26, 04:11
I got everything up and running, but when it came to searching for music, or generally anything it takes forever. I timed searching for a video and it took 7 min. When it's searching, I can't use any other part of Daphile

philippe_44
2016-10-26, 12:07
I got everything up and running, but when it came to searching for music, or generally anything it takes forever. I timed searching for a video and it took 7 min. When it's searching, I can't use any other part of Daphile

See here http://forums.slimdevices.com/showthread.php?105840-ANNOUNCE-YouTube-Plugin-(API-v3)&p=865729&viewfull=1#post865729

WiredGaming
2016-10-31, 05:46
See here http://forums.slimdevices.com/showthread.php?105840-ANNOUNCE-YouTube-Plugin-(API-v3)&p=865729&viewfull=1#post865729

I've got 110/40 internet connection and running Daphile on a computer with i7 4770K, and i've already tried lowering it and it dosen't help a bit

philippe_44
2016-10-31, 07:09
I've got 110/40 internet connection and running Daphile on a computer with i7 4770K, and i've already tried lowering it and it dosen't help a bit

Please go to the other thread, I don't answer on this one any more

digimaster
2017-09-01, 05:14
The following are the steps I used to install the SSL perl modules on my QNap NAS install of the squeezebox server. Note the /share/MD0_DATA part of the path may be different on your server

#ipkg install openssl openssl-dev
#ipkg install make
#ipkg install gcc

#cd /share/MD0_DATA/.qpkg/LogitechMediaServer/
#mkdir tmp
#cd tmp

#wget http://search.cpan.org/CPAN/authors/id/A/AB/ABH/Mozilla-CA-20141217.tar.gz
#tar zxvf Mozilla-CA-20141217.tar.gz
#cd Mozilla-CA-20141217
#../../bin/perl Makefile.PL
#make
#make install
#cd ..


#wget http://search.cpan.org/CPAN/authors/id/M/MI/MIKEM/Net-SSLeay-1.68.tar.gz
#tar zxvf Net-SSLeay-1.68.tar.gz
#cd Net-SSLeay-1.68
#OPENSSL_PREFIX=/opt ../../bin/perl Makefile.PL
#make
#make install
#cd ..


#wget http://search.cpan.org/CPAN/authors/id/S/SU/SULLR/IO-Socket-SSL-2.012.tar.gz
#tar zxvf IO-Socket-SSL-2.012.tar.gz
#cd IO-Socket-SSL-2.012
#../../bin/perl Makefile.PL
#make
#make install
#cd ..


After doing this, test that it works by doing

# /share/MD0_DATA/.qpkg/LogitechMediaServer/bin/perl
use IO::Socket::SSL;

That should not give any errors if everything was successful.

A good guide, to install this on a qnap.
But the only trouble is with Net-SSLeay
I do OPENSSL_PREFIX=/opt /usr/bin/perl Makefile.PL
And make, whitch ends with a error


/opt/bin/ld: skipping incompatible /lib/libc.so.6 when searching for /lib/libc.so.6
/opt/bin/ld: cannot find /lib/libc.so.6
/opt/bin/ld: skipping incompatible /lib/ld-linux.so.2 when searching for /lib/ld-linux.so.2
/opt/bin/ld: cannot find /lib/ld-linux.so.2
collect2: error: ld returned 1 exit status
Makefile:497: recipe for target 'blib/arch/auto/Net/SSLeay/SSLeay.so' failed
make: *** [blib/arch/auto/Net/SSLeay/SSLeay.so] Error 1

Does any one knows how to solve this ?

philippe_44
2017-09-01, 06:29
A good guide, to install this on a qnap.
But the only trouble is with Net-SSLeay
I do OPENSSL_PREFIX=/opt /usr/bin/perl Makefile.PL
And make, whitch ends with a error


/opt/bin/ld: skipping incompatible /lib/libc.so.6 when searching for /lib/libc.so.6
/opt/bin/ld: cannot find /lib/libc.so.6
/opt/bin/ld: skipping incompatible /lib/ld-linux.so.2 when searching for /lib/ld-linux.so.2
/opt/bin/ld: cannot find /lib/ld-linux.so.2
collect2: error: ld returned 1 exit status
Makefile:497: recipe for target 'blib/arch/auto/Net/SSLeay/SSLeay.so' failed
make: *** [blib/arch/auto/Net/SSLeay/SSLeay.so] Error 1

Does any one knows how to solve this ?

do you know what Perl version and CPU type you have?

dhallag
2017-09-27, 00:31
The following are the steps I used to install the SSL perl modules on my QNap NAS install of the squeezebox server. Note the /share/MD0_DATA part of the path may be different on your server

#ipkg install openssl openssl-dev
#ipkg install make
#ipkg install gcc

#cd /share/MD0_DATA/.qpkg/LogitechMediaServer/
#mkdir tmp
#cd tmp

#wget http://search.cpan.org/CPAN/authors/id/A/AB/ABH/Mozilla-CA-20141217.tar.gz
#tar zxvf Mozilla-CA-20141217.tar.gz
#cd Mozilla-CA-20141217
#../../bin/perl Makefile.PL
#make
#make install
#cd ..


#wget http://search.cpan.org/CPAN/authors/id/M/MI/MIKEM/Net-SSLeay-1.68.tar.gz
#tar zxvf Net-SSLeay-1.68.tar.gz
#cd Net-SSLeay-1.68
#OPENSSL_PREFIX=/opt ../../bin/perl Makefile.PL
#make
#make install
#cd ..


#wget http://search.cpan.org/CPAN/authors/id/S/SU/SULLR/IO-Socket-SSL-2.012.tar.gz
#tar zxvf IO-Socket-SSL-2.012.tar.gz
#cd IO-Socket-SSL-2.012
#../../bin/perl Makefile.PL
#make
#make install
#cd ..


After doing this, test that it works by doing

# /share/MD0_DATA/.qpkg/LogitechMediaServer/bin/perl
use IO::Socket::SSL;

That should not give any errors if everything was successful.

so I am going through this but in your lines above, when I get to "../../bin/perl Makefile.PL" I get the error ../../bin/perl directory does not exist

can you help me here?

dhallag
2017-09-27, 10:15
ok per Michael's suggestion that the perl command may be in a different location, I used the command find -name "perl" to find the perl command and just used that directory and it worked. (I am learning). However, now when entering the line "OPENSSL_PREFIX=/opt ../../bin/perl Makefile.PL" I get the error "Unresolvable external dependency. This package requires a C complier. NA: Unable to build a distribution on this platform" Any idea on solving this error?

philippe_44
2017-09-29, 17:16
ok per Michael's suggestion that the perl command may be in a different location, I used the command find -name "perl" to find the perl command and just used that directory and it worked. (I am learning). However, now when entering the line "OPENSSL_PREFIX=/opt ../../bin/perl Makefile.PL" I get the error "Unresolvable external dependency. This package requires a C complier. NA: Unable to build a distribution on this platform" Any idea on solving this error?

You should post on the right thread, this one is deprecated. Give me the exact version of perl and CPU type and I can build the libraries for you

eater
2017-11-20, 16:11
Please go to the other thread, I don't answer on this one any more

If anybody -- like me -- had trouble finding the "other thread": it's here: Youtube Squeezebox plugin (http://forums.slimdevices.com/showthread.php?105840-ANNOUNCE-YouTube-Plugin-%28API-v3%29).

digimaster
2017-11-24, 12:54
For those how are looking for away, to make LogitechMediaServer working with support for spotty on Qnap.
If you`re Qnap is running on QTS4.2 or higher with 86_64, have a look here.

LogitechMediaServer for QNap x86_64 and QTS 4.2 or higher (http://forums.slimdevices.com/showthread.php?108292-LogitechMediaServer-for-Qnap-x86_64-with-qts-4-2-or-higher)

Latest version includes support for the plugins spotty/Youtube.. ( tested with QTS 4.3.4 )
LogitechMediaServer will be installed, as it made available by the developers.

jmsizun
2017-12-29, 10:42
Just installed the plugin.... and ... it ... just ...works!
Awesome!

A huge thank you to philippe44 and Triode !

And (to be fair) to Google (even if their api dev site to get an api key is a bit too scaringly sophisticated)

nervoteso
2018-10-14, 08:39
yt plugin stop working here, i'm on 7.9.1 picoreplayer. it worked fine last days. what's happened?

hartzell
2018-10-17, 15:33
I have the plugin working on a recent PiCorePlayer. Just followed the instructions, plus enabling the YouTube Data API in particular.

I'm having trouble getting Playlists to work.

[Putting aside musical tastes for a moment]

This list

https://www.youtube.com/watch?v=gh6_nrF1rAc&list=RD_m2zGncgLjw

in my browser has 26 songs.

I can't plug the URL into the plugins "Youtube URL", it complains about a bad URL

I can search for 'Mix - Gramatik - Hit That Jive (Original Mix)' in the Playlist search, but I don't find this particular list.

I can search more widely, but I only ever get hits for that particular track or other similar playlists.

I believe that I first landed on this list while playing something else and YouTube offered it to me. Is it some kind of anonymous playlist?

I've tried playing a saved playlist, but the plugin needs Oauth and when the Google credential dialog required me setting up an application and waiting for approval, so I've held off.

Is there a way that I can play lists like this?

Thanks!

linh0983
2018-10-30, 20:13
25874

nervoteso
2019-03-26, 15:05
hello
youtube plusing stopped working. i tried to create new credentials, but no luck. when i click get code nothing happens. in youtube says Oauth configuration missing, please see YouTube plugin settings

philippe_44
2019-03-26, 19:28
hello
youtube plusing stopped working. i tried to create new credentials, but no luck. when i click get code nothing happens. in youtube says Oauth configuration missing, please see YouTube plugin settings

Working fine here - try to erase the prefs/plugin/youtube.prefs

BrynClarke
2019-06-09, 11:46
Hi Philippe
I used the excellent YouTube plugin successfully for a good while, then stopped using is it as I succumbed to Spotify Premium which contains most of what I search for. But not all.
So a few days ago I tried a YouTube search, and all appeared OK, but no sound. The timer showed the track playing, then skipped back to the beginning after a while, but still no sound.
I wondered if the API was no longer OK (have had problems in other contexts with Google authorisation changes) so went to Settings and obtained Client ID, Secret key and then code, and apparently successfully authorised, and tried again.
Still no sound. Track timer advances, after a while (40 secs) skips back to zero and restarts, then same thing happens over and over (and "pause" button doesn't stop it - have to play a different (non-YouTube) track to stop it.

Same thing happens using my iphone iPeng as player, and using my SB Touch (with EDO).

Should I turn on some logs and post the output? Which ones? I have 0.87.0 of the YouTube plugin.

Thanks!

Logitech Media Server Version: 7.9.1 - 1504317335 @ Sat Sep 2 10:55:53 UTC 2017
Hostname: piCorePlayer
Server IP Address: 192.168.1.28
Server HTTP Port Number: 9000
Operating system: piCore - EN - utf8
Platform Architecture: armv7l-linux
Perl Version: 5.24.0 - arm-linux-gnueabihf-thread-multi-64int
Audio::Scan: 0.95
Database Version: DBD::SQLite 1.34_01 (sqlite 3.7.7.1)
Total Players Recognized: 2

inhico
2019-06-21, 08:57
Same problem here. Sometime in the past few weeks the plugin stopped: it won't play any song. I have no clue: searching works fine, recently played shows all the songs I've played, but somehow it won't play any song.
Everything is updated to the latest versions.

Would appreciate some help.

TIA & Grtz
Inhico

philippe_44
2019-06-22, 00:10
Hi Philippe
I used the excellent YouTube plugin successfully for a good while, then stopped using is it as I succumbed to Spotify Premium which contains most of what I search for. But not all.
So a few days ago I tried a YouTube search, and all appeared OK, but no sound. The timer showed the track playing, then skipped back to the beginning after a while, but still no sound.
I wondered if the API was no longer OK (have had problems in other contexts with Google authorisation changes) so went to Settings and obtained Client ID, Secret key and then code, and apparently successfully authorised, and tried again.
Still no sound. Track timer advances, after a while (40 secs) skips back to zero and restarts, then same thing happens over and over (and "pause" button doesn't stop it - have to play a different (non-YouTube) track to stop it.

Same thing happens using my iphone iPeng as player, and using my SB Touch (with EDO).

Should I turn on some logs and post the output? Which ones? I have 0.87.0 of the YouTube plugin.

Thanks!

Logitech Media Server Version: 7.9.1 - 1504317335 @ Sat Sep 2 10:55:53 UTC 2017
Hostname: piCorePlayer
Server IP Address: 192.168.1.28
Server HTTP Port Number: 9000
Operating system: piCore - EN - utf8
Platform Architecture: armv7l-linux
Perl Version: 5.24.0 - arm-linux-gnueabihf-thread-multi-64int
Audio::Scan: 0.95
Database Version: DBD::SQLite 1.34_01 (sqlite 3.7.7.1)
Total Players Recognized: 2


Same problem here. Sometime in the past few weeks the plugin stopped: it won't play any song. I have no clue: searching works fine, recently played shows all the songs I've played, but somehow it won't play any song.
Everything is updated to the latest versions.

Would appreciate some help.

TIA & Grtz
Inhico

Please look at the updates!

inhico
2019-06-22, 12:43
Please look at the updates!

Hi Philippe,

In fact I think the problem may be caused by an update, but I'm not sure. There were a few updates for LMS lately. I've installed all of them. I'm now on 7.9.2 - 1561089896 @ Fri Jun 21 06:16:38 CEST 2019. My YouTube plugin is v0.87.2.
So, as far as I know everything is up-to-date.

I don't have a clue where to look

Grtz

Inhico

philippe_44
2019-06-22, 12:50
Hi Philippe,

In fact I think the problem may be caused by an update, but I'm not sure. There were a few updates for LMS lately. I've installed all of them. I'm now on 7.9.2 - 1561089896 @ Fri Jun 21 06:16:38 CEST 2019. My YouTube plugin is v0.87.2.
So, as far as I know everything is up-to-date.

I don't have a clue where to look

Grtz

Inhico

Use YT plugin 0.88.0

inhico
2019-06-23, 11:06
Thanks, I will try that. Downloaded it from sourceforge. Don't know how how to install on Ubuntu server yet, but I will try (too much beer in my system now...).

Grtz
Inhico

Update:
Well, don't know what I did exactly, apart from restarting LMS, but now I'm on YT 0.88.0 and everything is working fine again!
Thank you so much Philippe!

miketyson
2019-07-11, 03:27
Dear Philippe,
thanks for your valuable plugin, I used it for a long time. Currently, with v. 0.88 and LMS 7.9.2 - 1561089896 I'm not able to perform any search. The result is always "Empty". Maybe some changes on Youtube side?

thanks

DavidBulluss
2020-01-02, 16:36
Hi all. HNY!

I have been using the Youtube plug in for a while but not recently. Went to use it a few days ago and it asked for a new client ID etc. No problem, have done that before. Not working. I enter the new client ID and the new client secret (copy and pasted) and then <apply>. Top of screen says changes saved. Then I hit <get code> but the code does not appear. Then <refresh> but nothing. Repeat several times, then nothing. Refresh browser screen and navigate back to page, nothing. I have also entered my YouTube API access key to see if that is needed, still nothing. Am I missing something?

Regards, David

philippe_44
2020-01-02, 17:27
Dear Philippe,
thanks for your valuable plugin, I used it for a long time. Currently, with v. 0.88 and LMS 7.9.2 - 1561089896 I'm not able to perform any search. The result is always "Empty". Maybe some changes on Youtube side?

thanks


Hi all. HNY!

I have been using the Youtube plug in for a while but not recently. Went to use it a few days ago and it asked for a new client ID etc. No problem, have done that before. Not working. I enter the new client ID and the new client secret (copy and pasted) and then <apply>. Top of screen says changes saved. Then I hit <get code> but the code does not appear. Then <refresh> but nothing. Repeat several times, then nothing. Refresh browser screen and navigate back to page, nothing. I have also entered my YouTube API access key to see if that is needed, still nothing. Am I missing something?

Regards, David

Please upgrade

DavidBulluss
2020-01-02, 20:20
Please upgrade

Already using v0.91.0

philippe_44
2020-01-03, 05:48
Already using v0.91.0

Look at the log, which Perl version do you have?

slartibartfast
2020-01-03, 06:44
Look at the log, which Perl version do you have?Is "Get Code" necessary for the plugin to work? I have just installed it on a new server and don't remember clicking on it.

Sent from my Pixel 3a using Tapatalk

philippe_44
2020-01-03, 06:53
Is "Get Code" necessary for the plugin to work? I have just installed it on a new server and don't remember clicking on it.

Sent from my Pixel 3a using Tapatalk

You need a key. The use of your personal account is only needed if you want your playlists and subscriptions

chaug
2020-01-03, 16:47
Thanks for an excellent plugin.

Is there a way of accessing one's albums from Youtube Music? Currently, my workaround is to go to the album on youtube music and add its songs to a playlist which then becomes accessible via the plugin. Is there a better way?

And here is a feature request: it would be great to have a plugin setting that would allow me to filter which subscriptions and which playlists should be displayed on LMS. Well, let's start with playlists. Because we have control over how we call our playlists, it would suffice if the plugin would let me specify a prefix that needs to be included in the playlist name in order to be displayed in LMS. For example, I could use the Prefix "Music_" to filter for my music related playlists so that all my other youtube playlists are not shown.

When it comes to subscriptions, it's probably a bit mor difficult because there is no pattern in the LMS relevant youtube channel names. I guess this is not as important a feature as the playlist filter, but if you implement such a setting, it would probably be best to show a list with all subscriptions with a check box next to each and the user can unselect the ones that shouldn't be shown on LMS.

DavidBulluss
2020-01-05, 15:40
Look at the log, which Perl version do you have?

This is reported on the piCorePlayer interface page - linux 4.19.40-pcpCore_v7

philippe_44
2020-01-05, 16:21
This is reported on the piCorePlayer interface page - linux 4.19.40-pcpCore_v7

There has to be a Perl version as well, maybe ask pCP team

DavidBulluss
2020-01-05, 16:31
There has to be a Perl version as well, maybe ask pCP team

I can set a log and run it in LMS, which one?

philippe_44
2020-01-05, 21:04
I can set a log and run it in LMS, which one?

It's in the LMS' webUI, settings, information's tab

DavidBulluss
2020-01-05, 21:39
It's in the LMS' webUI, settings, information's tab

Thanks!

Perl Version: 5.28.0 - arm-linux-gnueabihf-thread-multi-64int

philippe_44
2020-01-06, 00:33
Thanks!

Perl Version: 5.28.0 - arm-linux-gnueabihf-thread-multi-64int

Nothing exotic then. Well, try to erase the YT prefs and simply use an API key to start with. I don't know what's happening, it should work. Please continue discussion here https://forums.slimdevices.com/showthread.php?105840-ANNOUNCE-YouTube-Plugin-(API-v3)

philippe_44
2020-01-06, 02:02
One last thing you should do: delete your YT project and create a new one. I just saw that Google is doing something funny with “old” projects: they can’t create keys anymore...

DavidBulluss
2020-01-06, 23:26
One last thing you should do: delete your YT project and create a new one. I just saw that Google is doing something funny with “old” projects: they can’t create keys anymore...

Thanks for that tip! Have now done so. Have also uninstalled YoutTube & restarted etc. and then reinstalled it, then added new key etc. The red code is now appearing and I can use it to log into my YT account. Not working though as when I search in YT there are no results, just empty.

You said earlier to delete YT preferences ... I am unsure how to do that without deleting all LMS preferences, have tried looking through the software files etc. but unable to locate a file to delete.

I will also repost this in the other thread as you requested.

Cheers, David

markm9999
2020-03-16, 23:37
For the identification tags, I don't think the popup message is really clear. Is this supposed to be some kind of escape sequence that is not displaying correctly?

I mean, I can put various characters before & after, but no bolding etc.

29756

philippe_44
2020-03-17, 00:00
For the identification tags, I don't think the popup message is really clear. Is this supposed to be some kind of escape sequence that is not displaying correctly?

I mean, I can put various characters before & after, but no bolding etc.

29756

I need to find a way to escape these
This is <b> and </b>

dayus
2020-03-22, 12:29
In this plugin working a searching in played clip on youtube?
If I need search something (forward/rewind) some clip, musing still playing from 0:00....?

mordac
2020-04-27, 02:16
Hi everyone. I just installed the plug-in (LMS 8.0 running on Raspberry Pi4+, Duet players and serveral iPhones using iPeng). It worked right the first time ! Great work.

is there any re-sampling done, or does it play just whatever comes from YouTube ?

philippe_44
2020-04-28, 13:52
Hi everyone. I just installed the plug-in (LMS 8.0 running on Raspberry Pi4+, Duet players and serveral iPhones using iPeng). It worked right the first time ! Great work.

is there any re-sampling done, or does it play just whatever comes from YouTube ?

You're one the wrong (old) thread but the answer is that the audio is passed directly to LMS which will do resampling if needed, according to your player characteristics.

oldius
2020-09-11, 07:04
I would love this but every search reveals an empty response. Any guidance appreciated.

Man in a van
2020-09-11, 07:35
I would love this but every search reveals an empty response. Any guidance appreciated.

As with the previous poster, you need to relocate :)

https://forums.slimdevices.com/showthread.php?105840-ANNOUNCE-YouTube-Plugin-(API-v3)

Please give an example of a failed search

ronnie