04-28-2020, 01:43 PM
(This post was last modified: 04-28-2020, 01:54 PM by TheOldPresbyope.
Edit Reason: minor tweak
)
This an off-by-one situation can also occur if one or more tracks does not have an entry in the Album field in its metadata tag. Somewhat schizophrenically, MPD doesn't count it as an album but it remembers the null name.
Here's a simple test of 6.5.1 with three directories on the SDCARD, each containing one track. Two of the tracks have an entry in the Album field. The third, Northern Exposure, does not. (These were left over from our testing the seekbar issue.)
When I regenerate the album cover thumbnail cache and view the status, it reports "3 albums processed". OTOH, MPD says
See that first blank line under 'mpc list album'? That's the null album name, so in a sense MPD does know there's a third album.
So, without reviewing the code change between 6.4.2 and 6.5.1, I'd guess 6.4.2 would report 2 albums processed for this test case.
Regards,
Kent
PS - @the_bertrum. I would have seen your bet As can inferred from the above, 'Stereo test' is an album because the single track has the value 'Stereo Test' in the Album field of its metadata tag.
Here's a simple test of 6.5.1 with three directories on the SDCARD, each containing one track. Two of the tracks have an entry in the Album field. The third, Northern Exposure, does not. (These were left over from our testing the seekbar issue.)
Code:
pi@moodeCD:/mnt/SDCARD $ ls -R
.:
'Big Science' 'Northern Exposure' 'Stereo Test'
'./Big Science':
longflac.flac
'./Northern Exposure':
'Northern Exposure (North) (DJ Mix).flac'
'./Stereo Test':
LRMonoPhase4.flac
When I regenerate the album cover thumbnail cache and view the status, it reports "3 albums processed". OTOH, MPD says
Code:
pi@moodeCD:/mnt/SDCARD/Stereo Test $ mpc stats
Artists: 4
Albums: 2
Songs: 3
Play Time: 0 days, 2:36:11
Uptime: 1 days, 19:16:34
DB Updated: Tue Apr 28 08:06:21 2020
DB Play Time: 0 days, 2:36:49
pi@moodeCD:/mnt/SDCARD/Stereo Test $ mpc list album
Big Science
Stereo Test
See that first blank line under 'mpc list album'? That's the null album name, so in a sense MPD does know there's a third album.
So, without reviewing the code change between 6.4.2 and 6.5.1, I'd guess 6.4.2 would report 2 albums processed for this test case.
Regards,
Kent
PS - @the_bertrum. I would have seen your bet As can inferred from the above, 'Stereo test' is an album because the single track has the value 'Stereo Test' in the Album field of its metadata tag.