The UK Home Automation Archive

Archive Home
Group Home
Search Archive


Advanced Search

The UKHA-ARCHIVE IS CEASING OPERATIONS 31 DEC 2024


[Message Prev][Message Next][Thread Prev][Thread Next][Message Index][Thread Index]

Re: slimserver xpl module help


  • Subject: Re: slimserver xpl module help
  • From: "rleong1" <rleong1@xxxxxxxxx>
  • Date: Thu, 26 May 2005 15:43:08 -0000

--- In ukha_xpl@xxxxxxx, John Gorst <ukha@g...> wrote:
> rleong1 wrote:
>
> >good work.  i made a change that sends an xpl message after every
> >change in play mode (play, stop, pause, skip back/fwd)
> >
> >when you skip back/fwd, it will send out an xpl message w/
> >status=stopped, the rest of the fields blank. then when the next
track
> >queues up it will send a message w/ the correct info.  similarly
for
> >pause & stop it will send out a message w/ status=stopped or
> >status=paused and the other fields (except power) blank.
> >
> >let me know if that'll do & i'll upload it to my site.
> >
> >
> >
> That would be cool. Would it be possible to point out the changes so I
> dont have to go hunting this time though!

source.pm changed, added code starting @ line 513.  removed other call
to Slim::Control::xPL::sendXplHBeatMsg (sorry you'll have to search i
don't have the line number or do a 'diff')

...

>
> The offending line is $album = $track->album()->title();
>
> Should this (minor) error cause slimserver to crash! Presumeably
this is
> something 'special' with alienBBC streams (?other radio streams) not
> having the typical album/artist/title info.
>
> If this information is not known should it not just return 'unknown'.
>

i changed xpl.pm to check if $track->album()->title() is defined. i
hope this helps. try it out first. i'm not sure if it works because i
can't run a stream right now.  you should just be able to copy the
whole file instead of finding the diffs.

control.pm is unchanged.




xPL Links: http://www.xplproject.org.uk http://www.xplhal.com http://www.xpl.myby.co.uk
To Post a Message: ukha_xpl@xxxxxxx
To Subscribe:  ukha_xpl-subscribe@xxxxxxx
To Unsubscribe:  ukha_xpl-unsubscribe@xxxxxxx

xPL Main Index | xPL Thread Index | xPL Home | Archives Home

Comments to the Webmaster are always welcomed, please use this contact form . Note that as this site is a mailing list archive, the Webmaster has no control over the contents of the messages. Comments about message content should be directed to the relevant mailing list.