[Slim-Checkins] r10797 - /trunk/server/Plugins/MusicMagic/Importer.pm

dsully at svn.slimdevices.com dsully at svn.slimdevices.com
Wed Nov 29 14:58:54 PST 2006


Author: dsully
Date: Wed Nov 29 14:58:53 2006
New Revision: 10797

URL: http://svn.slimdevices.com?rev=10797&view=rev
Log:
Bug: N/A
Description: Check for greater & less than for versions.

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

Modified: trunk/server/Plugins/MusicMagic/Importer.pm
URL: http://svn.slimdevices.com/trunk/server/Plugins/MusicMagic/Importer.pm?rev=10797&r1=10796&r2=10797&view=diff
==============================================================================
--- trunk/server/Plugins/MusicMagic/Importer.pm (original)
+++ trunk/server/Plugins/MusicMagic/Importer.pm Wed Nov 29 14:58:53 2006
@@ -199,7 +199,7 @@
 	# MMM Version 1.5+ adds support for /api/songs?extended, which pulls
 	# down the entire library, separated by $LF$LF - this allows us to make
 	# 1 HTTP request, and the process the file.
-	if (Slim::Utils::Versions->compareVersions($MMMVersion, '1.5')) {
+	if (Slim::Utils::Versions->compareVersions($MMMVersion, '1.5') >= 0) {
 
 		$log->info("Fetching ALL song data via songs/extended..");
 
@@ -378,7 +378,7 @@
 	my $class = shift;
 
 	# check for dupes, but not with 1.1.3
-	if (Slim::Utils::Versions->compareVersions('1.1.3', $MMMVersion)) {
+	if (Slim::Utils::Versions->compareVersions('1.1.3', $MMMVersion) <= 0) {
 		return;
 	}
 



More information about the checkins mailing list