PDA

View Full Version : Slimlyrics crashes server



bob findlay (JIC)
2005-01-21, 02:42
I have just downloaded and installed the latest version of the lyrics
screensaver. When I tried to run it, it crashes my slimserver.

I believe that earlier versions required XML::DOM, but the latest
version claims to have removed the dependency on this (I do not have
this installed as I don't know how!)

Does the latest versions still require this component? If it does, how
do I go about installing it on a Windows system? if it doesn't, can
anyone suggest why it might be crashing my system?

Cheers,

Bob

lsmithso
2005-04-22, 08:45
I have just downloaded and installed the latest version of the lyrics
screensaver. When I tried to run it, it crashes my slimserver.

I believe that earlier versions required XML::DOM, but the latest
version claims to have removed the dependency on this (I do not have
this installed as I don't know how!)

Does the latest versions still require this component? If it does, how
do I go about installing it on a Windows system? if it doesn't, can
anyone suggest why it might be crashing my system?

Cheers,

Bob

I've just uploaded version 0.4 of Lyrics.pm that might solve some of these problems. Give it a go and let me know how you get on.

max.spicer
2005-04-22, 09:51
Where are you getting the lyrics from? This plugin sounds like a bit of a laugh.

lsmithso
2005-04-22, 10:04
Where are you getting the lyrics from? This plugin sounds like a bit of a laugh.

http://lyrc.com.ar - coverage is a bit sparse, but its the only XML lyrics server I could find.

Dan Sully
2005-04-22, 10:11
* lsmithso shaped the electrons to say...

> I've just uploaded version 0.4 of Lyrics.pm that might solve some of
> these problems. Give it a go and let me know how you get on.

If you wanted to get really up to date - you should update it to use
XML::Parser, and the Asynchronous HTTP requests in 6.1 :)

-D
--
<noah> I used to be indecisive, but now I'm not sure.

lsmithso
2005-04-22, 10:19
* lsmithso shaped the electrons to say...

> I've just uploaded version 0.4 of Lyrics.pm that might solve some of
> these problems. Give it a go and let me know how you get on.

If you wanted to get really up to date - you should update it to use
XML::Parser, and the Asynchronous HTTP requests in 6.1 :)

-D
--
<noah> I used to be indecisive, but now I'm not sure.

Sounds fun - but the Lyrics XML format is broken and can't be parsed properly. I'm not sure how Asynch HTTP would be useful to Lyrics.pm, any hints?

Dan Sully
2005-04-22, 10:20
* lsmithso shaped the electrons to say...

>Sounds fun - but the Lyrics XML format is broken and can't be parsed
>properly. I'm not sure how Asynch HTTP would be useful to Lyrics.pm, any hints?

I assume that the HTTP request is made while music is playing.. this would
prevent any stoppage of the music by making a request to the lyrics server
that doesn't block. Take a look at the checkVersion code in slimserver.pl in
6.1, or Dave's PodCast plugin.

-D
--
<noah> I used to be indecisive, but now I'm not sure.

lsmithso
2005-04-22, 10:35
* lsmithso shaped the electrons to say...

>Sounds fun - but the Lyrics XML format is broken and can't be parsed
>properly. I'm not sure how Asynch HTTP would be useful to Lyrics.pm, any hints?

I assume that the HTTP request is made while music is playing.. this would
prevent any stoppage of the music by making a request to the lyrics server
that doesn't block. Take a look at the checkVersion code in slimserver.pl in
6.1, or Dave's PodCast plugin.

-D
--
<noah> I used to be indecisive, but now I'm not sure.

That's pretty much what happens - though I've never noticed dropouts while using Lyrics.pm, even when the Lyrics server is down - I guess I've been lucky.

I've just spotted Slim::Networking::SimpleAsyncHTTP()in 6.0.1. I'll have a go with this and see if it works.

Marc Sherman
2005-04-22, 11:00
lsmithso wrote:
>
> That's pretty much what happens - though I've never noticed dropouts
> while using Lyrics.pm, even when the Lyrics server is down - I guess
> I've been lucky.

I have. I've also noticed that Lyrics.pm spams the logs rather
verbosely, and re-fetches lyrics all the time -- caching lyrics would be
a good idea, I think.

It might be neat to have it automatically advance the lyrics, instead of
requiring the user to page manually with the arrow buttons.

- Marc

lsmithso
2005-04-22, 12:02
lsmithso wrote:
>
> That's pretty much what happens - though I've never noticed dropouts
> while using Lyrics.pm, even when the Lyrics server is down - I guess
> I've been lucky.

I have. I've also noticed that Lyrics.pm spams the logs rather
verbosely, and re-fetches lyrics all the time -- caching lyrics would be
a good idea, I think.

It might be neat to have it automatically advance the lyrics, instead of
requiring the user to page manually with the arrow buttons.

- Marc

I did consider caching, but I guessed that most people are on broadband, and that the server would only be hit once-per-song (approx.), so I thought it would be more trouble than its worth.

Agree about the log spamming - I should turn it off by default.

As for auto-scrolling the lyrics, I don't know how you would work out the timings - do you have any ideas?