sentriz / gonic

music streaming server / free-software subsonic server API implementation
ircs://irc.libera.chat/#gonic
GNU General Public License v3.0
1.58k stars 112 forks source link

Incorrect album count in stats section #396

Closed mstcl closed 11 months ago

mstcl commented 11 months ago

gonic version: 0.16.0 (docker tag: latest)

Issue

In the "stats" section on the dashboard, the album count is much higher than the actual value.

Details

My library has 307 albums (according to Symfonium). If I run a find command on my music while fixing the depth to 2 then it returns 309 folders that should all be albums (close enough to 307, perhaps it's some tagging/merging thing).

I have 202 artists (according to Symfonium and gonic). If I count artist folders, that's 200, which is close enough, probably affected by tagging again.

Now, gonic reports in the stats section 510, which seems to be 309 album folders + 200 artist folders + 1 (presumably top-level folder).

Is this intended?