Michael, I've problem with title formats that contains ARTIST or ALBUM
in the name.

This is what happens:
1. I enter Plugins::MusicInfoSCR::Info::getFormatString with
$formattedString set to "TITLESWITCHERALBUMARTISTTRACKSTATRATING"

The result of this is that the following row thinks this is an album or
artist:

Code:
--------------------
    
  my $albumOrArtist = ($formatString =~ /(ALBUM|ARTIST)/i);
  
--------------------
 

2. The formattedString returned from the following row might be
"*****":

Code:
--------------------
    
  $formattedString = Slim::Music::Info::displayText($client, $song, 
$formattedString);
  
--------------------


3. Finally it enters the if statement for $albumOrArtist and when it
reaches the following row the ***** in my format string is changed to
an empty string.

Code:
--------------------
    
  $tmpFormattedString =~ s/\W//g;
  
--------------------


I'm not sure if the problem is the regular expression in step 1 or the
replacement regular expression in step 3. It works correctly as long as
I don't have the word ALBUM or ARTIST in the title format name.


-- 
erland

Erland Isaksson
'My homepage' (http://erland.isaksson.info) 'My download page'
(http://erland.isaksson.info/download)
(Developer of 'TrackStat, SQLPlayList, DynamicPlayList, Custom Browse,
Custom Scan,  Custom Skip, Multi Library and Database Query plugins'
(http://wiki.erland.isaksson.info/index.php/Category:SlimServer))
------------------------------------------------------------------------
erland's Profile: http://forums.slimdevices.com/member.php?userid=3124
View this thread: http://forums.slimdevices.com/showthread.php?t=53347

_______________________________________________
plugins mailing list
[email protected]
http://lists.slimdevices.com/lists/listinfo/plugins

Reply via email to