[Slim-Checkins] r11782 - /branches/6.5/server/Slim/Formats/MP3.pm

andy at svn.slimdevices.com andy at svn.slimdevices.com
Wed Apr 18 07:50:12 PDT 2007


Author: andy
Date: Wed Apr 18 07:50:12 2007
New Revision: 11782

URL: http://svn.slimdevices.com?rev=11782&view=rev
Log:
Change auto-titling of ID3 tags in remote mp3 files to use 'by' and 'from' instead of dashes

Modified:
    branches/6.5/server/Slim/Formats/MP3.pm

Modified: branches/6.5/server/Slim/Formats/MP3.pm
URL: http://svn.slimdevices.com/branches/6.5/server/Slim/Formats/MP3.pm?rev=11782&r1=11781&r2=11782&view=diff
==============================================================================
--- branches/6.5/server/Slim/Formats/MP3.pm (original)
+++ branches/6.5/server/Slim/Formats/MP3.pm Wed Apr 18 07:50:12 2007
@@ -33,6 +33,7 @@
 
 use Slim::Utils::Misc;
 use Slim::Utils::SoundCheck;
+use Slim::Utils::Strings qw(string);
 
 my %tagMapping = (
 	'Unique file identifier'	=> 'MUSICBRAINZ_ID',
@@ -425,8 +426,8 @@
 		$::d_scan && msg("MP3 scanBitrate: Read ID3 tags from stream: " . Data::Dump::dump(\%tags) . "\n");
 		
 		my $title = $tags{TITLE};
-		$title .= ' - ' . $tags{ARTIST} if $tags{ARTIST};
-		$title .= ' - ' . $tags{ALBUM}  if $tags{ALBUM};
+		$title .= ' ' . string('BY') . ' ' . $tags{ARTIST} if $tags{ARTIST};
+		$title .= ' ' . string('FROM') . ' ' . $tags{ALBUM}  if $tags{ALBUM};
 		
 		Slim::Music::Info::setCurrentTitle( $url, $title );
 	}



More information about the checkins mailing list