smc2911;282866 Wrote: 
> Apologies for the cross-post, but 'this thread'
> (http://forums.slimdevices.com/showthread.php?t=44770) didn't get much
> of a response under General Discussion, and is a better fit here. If
> it's possible to get track and disc numbers displayed in the SBC Now
> Playing list, I'd love to know how.

Locate Slim/Control/Queries.pm.

Look around line 4134 in there (might be a little way out) in the sub
titlesQuery.

Locate the sequence:


Code:
--------------------
                                    # open a window with icon etc...
  
  
  my $text = $item->title;
  my $album;
  my $albumObj = $item->album();                  
  
  # Bug 7443, check for a track cover before usinng the album cover
  my $iconId = $item->coverArtExists ? $id : 0;
  
--------------------


Change this to:


Code:
--------------------
                                    # open a window with icon etc...
  
  
  my $text = $item->title;
  my $album;
  my $albumObj = $item->album();                  
  my $trackNum = $item->tracknum;
  
  if (defined $trackNum)
  {
  $text = "$trackNum. " . $text;              
  }
  
  # Bug 7443, check for a track cover before usinng the album cover
  my $iconId = $item->coverArtExists ? $id : 0;
  
--------------------


ie insert the new bits dealing with $trackNum.

This is VERY rough and ready and doesn't follow the configuration
(presumable the Slim::Music::TitleFormatter is the thing I should be
using), but I've just thrown this together quickly before I go to
work.

Oh, that'll teach me to not read the post properly. You said /in Now
Playing/. Bother. Ok. Well, the above will work, but only for the
tracks in the track selector, not 'Now Playing'. I'll try to remember
to look at this more closely when I get home tonight.


-- 
gerph
------------------------------------------------------------------------
gerph's Profile: http://forums.slimdevices.com/member.php?userid=1819
View this thread: http://forums.slimdevices.com/showthread.php?t=45226

_______________________________________________
jive mailing list
[email protected]
http://lists.slimdevices.com/cgi-bin/mailman/listinfo/jive

Reply via email to