Bugzilla – Bug 2509
Errouneous grouping of albums with commom title
Last modified: 2005-11-08 02:29:07 UTC
I will attach a zip file containing two album flacs each containing an album titled 'Greatest Hits' but by different artists. When extracting the two flac files, ensure to put them in different directories. Allthough these two files contains two completely different albums, they are grouped together when browsing by albums, and they are also are counted as one album in the album count display. The error was introduced in r5014, r5013 works correctly. The problem is that with r5014 the code inside this if statement in DBIStore.pm IS NOT run: if ($albumObj && $checkDisc && !$attributes->{'COMPILATION'}) { my %tracks = map { $_->tracknum, $_ } $albumObj->tracks; my $matchTrack = $tracks{ $track->tracknum }; if (defined $matchTrack && dirname($matchTrack->url) ne dirname($track->url)) { $albumObj = undef; $::d_info && msg("_postCheckAttributes: Wrong album '$album' found\n"); } } In r5013 the code inside the if statement IS run and two separate albums show up. The reason for the different behavior is that the code calculating $checkDisc has changed from r5013 to r5014. (I have also noticed that if the attached flac files are placed in the same directory they are combined into one album both in r5013 and r5014. Is this by intention?)
Created attachment 997 [details] zip-file containf two Greatest Hits flacs
The reason for the problem is that !$checkDisk is used in the if test in r5013, while in r5014 $checkDisc is used. Reverting to !$checkDisk in r5014 (and later revisions) fixes the problem. I don't know if this problem only happens for album flacs, or if it is a general problem...
what is your setting for "specify common album titles"?
OK, got it. If I specity "Greatest Hits" in th 'Common Album Titles' list, the albums are grouped correctly. Thanks.