[Slim-Checkins] r10068 - in /trunk/server: Changelog6.html Plugins/MusicMagic/Importer.pm

dsully at svn.slimdevices.com dsully at svn.slimdevices.com
Wed Sep 27 16:31:35 PDT 2006


Author: dsully
Date: Wed Sep 27 16:31:33 2006
New Revision: 10068

URL: http://svn.slimdevices.com?rev=10068&view=rev
Log:
Bug: 3318
Description: MiP uses UTF-8 for it's dumps now.

Modified:
    trunk/server/Changelog6.html
    trunk/server/Plugins/MusicMagic/Importer.pm

Modified: trunk/server/Changelog6.html
URL: http://svn.slimdevices.com/trunk/server/Changelog6.html?rev=10068&r1=10067&r2=10068&view=diff
==============================================================================
--- trunk/server/Changelog6.html (original)
+++ trunk/server/Changelog6.html Wed Sep 27 16:31:33 2006
@@ -3,6 +3,7 @@
 <ul>
 	<li>Bug Fixes:
 		<li><a href="http://bugs.slimdevices.com/show_bug.cgi?id=2985">#2985</a> - WMA transcoded to WAV truncated (not gapless)</li>
+		<li><a href="http://bugs.slimdevices.com/show_bug.cgi?id=3318">#3318</a> - MusicMagic: Songs with national chars get duplicated</li>
 		<li><a href="http://bugs.slimdevices.com/show_bug.cgi?id=4071">#4071</a> - Band Names in mp3 Tags don't always work</li>
 		<li><a href="http://bugs.slimdevices.com/show_bug.cgi?id=4077">#4077</a> - CUE files YEAR and GENRE not always working</li>
 		<li><a href="http://bugs.slimdevices.com/show_bug.cgi?id=4140">#4140</a> - Problem with the scanner parsing cue sheets in6.5b3</li>

Modified: trunk/server/Plugins/MusicMagic/Importer.pm
URL: http://svn.slimdevices.com/trunk/server/Plugins/MusicMagic/Importer.pm?rev=10068&r1=10067&r2=10068&view=diff
==============================================================================
--- trunk/server/Plugins/MusicMagic/Importer.pm (original)
+++ trunk/server/Plugins/MusicMagic/Importer.pm Wed Sep 27 16:31:33 2006
@@ -263,9 +263,15 @@
 	$attributes{'AUDIO'} = 1;
 	$attributes{'SECS'}  = $songInfo{'seconds'} if $songInfo{'seconds'};
 
-	for my $key (qw(album artist genre name)) {
-
-		next if !$songInfo{$key};
+	# Bug 3318
+	# MiP 1.6+ encode filenames as UTF-8, even on Windows.
+	# So we need to turn the string from MiP to UTF-8, which then gets
+	# turned into the local charset below with utf8encode_locale
+	for my $key (qw(album artist genre name file)) {
+
+		if (!$songInfo{$key}) {
+			next;
+		}
 
 		my $enc = Slim::Utils::Unicode::encodingFromString($songInfo{$key});
 



More information about the checkins mailing list