Index: server/types.conf =================================================================== RCS file: /cvsroot/slim/server/types.conf,v retrieving revision 1.19 diff -u -r1.19 types.conf --- server/types.conf 26 Oct 2004 22:49:52 -0000 1.19 +++ server/types.conf 9 Dec 2004 09:27:08 -0000 @@ -13,6 +13,7 @@ asx asx,wax video/asx,application/asx,application/vnd.ms-asf,video/x-ms-asf,audio/x-ms-wax,audio/x-ms-asf playlist css css text/css - cue cue audio/x-cue playlist +cur - audio/x-cue-referenced - dir - application/directory list flc flac,flc audio/x-flac audio fec - audio/x-cue-flac playlist Index: server/Slim/Formats/Parse.pm =================================================================== RCS file: /cvsroot/slim/server/Slim/Formats/Parse.pm,v retrieving revision 1.26 diff -u -r1.26 Parse.pm --- server/Slim/Formats/Parse.pm 4 Dec 2004 20:30:51 -0000 1.26 +++ server/Slim/Formats/Parse.pm 9 Dec 2004 09:27:09 -0000 @@ -301,6 +301,15 @@ Slim::Music::Info::readTags($url,$cacheEntry); } + # if the file referenced by the cuesheet is unset or of an audio type + # mark it as type "cue referenced" in order to avoid duplicate entries + # in the db + my $type = Slim::Music::Info::cacheItem($filename, 'CT'); + if ((! defined($type)) || + ($Slim::Music::Info::slimTypes{$type} && $Slim::Music::Info::slimTypes{$type} =~ 'audio')) { + Slim::Music::Info::updateCacheEntry(Slim::Utils::Misc::fileURLFromPath($filename), {'CT' => 'cur'}); + } + $::d_parse && Slim::Utils::Misc::msg(" returning: " . scalar(@items) . " items\n"); return @items; }