Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


Album count differences in 6.5.1
#4
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.)

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 Tongue  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.
Reply


Messages In This Thread
Album count differences in 6.5.1 - by the_bertrum - 04-28-2020, 08:32 AM
RE: Album count differences in 6.5.1 - by TheOldPresbyope - 04-28-2020, 01:43 PM

Forum Jump: