[Slim-Checkins] r11781 - /trunk/server/Slim/Formats/MP3.pm
andy at svn.slimdevices.com
andy at svn.slimdevices.com
Wed Apr 18 07:48:34 PDT 2007
Author: andy
Date: Wed Apr 18 07:48:34 2007
New Revision: 11781
URL: http://svn.slimdevices.com?rev=11781&view=rev
Log:
Change auto-titling of ID3 tags in remote mp3 files to use 'by' and 'from' instead of dashes
Modified:
trunk/server/Slim/Formats/MP3.pm
Modified: trunk/server/Slim/Formats/MP3.pm
URL: http://svn.slimdevices.com/trunk/server/Slim/Formats/MP3.pm?rev=11781&r1=11780&r2=11781&view=diff
==============================================================================
--- trunk/server/Slim/Formats/MP3.pm (original)
+++ trunk/server/Slim/Formats/MP3.pm Wed Apr 18 07:48:34 2007
@@ -34,6 +34,7 @@
use Slim::Utils::Log;
use Slim::Utils::Misc;
use Slim::Utils::SoundCheck;
+use Slim::Utils::Strings qw(string);
my %tagMapping = (
'Unique file identifier' => 'MUSICBRAINZ_ID',
@@ -451,11 +452,13 @@
},
});
- $log->debug("Read ID3 tags from stream: " . Data::Dump::dump(\%tags));
+ if ( $log->is_debug ) {
+ $log->debug("Read ID3 tags from stream: " . Data::Dump::dump(\%tags));
+ }
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