mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-01-24 07:30:57 +01:00
[API] MusicArtists have incorrect childCount and 'null' songCount #7030
Labels
No labels
area:database
awaiting-feedback
backend
blocked
breaking change: web api
bug
build
ci
confirmed
discussion needed
dotnet future
downstream
duplicate
EFjellyfin.db
enhancement
feature
future
github-actions
good first issue
hdr
help wanted
invalid
investigation
librarydb
live-tv
lyrics
media playback
music
needs testing
nuget
performance
platform
pull-request
question
regression
release critical
requires-web
roadmap
security
security
stale
support
syncplay
ui & ux
upstream
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: starred/jellyfin#7030
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @lukaslindnermusic on GitHub (May 21, 2025).
Description of the bug
During work on the Finamp Redesign (proper differentiation between album artists and ("performing") artists), we wanted to include the Album Count of Album Artists and the Track/Song Count of (Performing) Artists in the list.
We noticed, that there are inconsistencies in the counts:
The
albumCount- which I personally thought would be the value to use - seems to always benull.The
childCountseems to be the count of albums of an (album)artist. However, I noticed some incorrect counts:albumArtistIdsand increase the counter for everyone.songCountisnullas well. It would be really nice if it would include the track count, where the artist was assigned in the "artist"-tag directly to a track (so, Appears On tracks as well as tracks where the artist is albumArtist + "performing" artist).Providing the correct counts would make life for clients so much easier, as I think the only option to currently accurately display the counts is to run two additional queries for each artist (one for the album children and one for the track/song children) and then grab the
totalRecordCountfrom those... this is possible when you're about to display an individual artists profile, but it is a huge and just unecessary overhead when you're putting together a list of all your artists.Thanks for your help 😊
Reproduction steps
childCountreturned from the api.The other problem (where there is only a single album artist) I could not pinpoint, so I can't provide exact reproduction steps.
What is the current bug behavior?
the API returns incorrect childCounts for some MusicArtists.
As mentioned above, this seems to be related to when there are multiple album artists for an album - in this case, the counts of these artists don't increase.
In addition to that, there seem to be other but more rare scenarios where even counts of single album-artist albums don't increase.
What is the expected correct behavior?
Most importantly, the correct album
childCountshould get returned.Ideally,
songChountshould also return the number of tracks where the artist is assigned asartist.Optionally, the
childCountcould get moved toalbumCountin that case, as it then specifies better what the count actually reflects.(Side Node: This could also be good for Genres 😊 )
Jellyfin Server version
10.10.0+
Specify commit id
No response
Specify unstable release number
No response
Specify version number
No response
Specify the build version
10.10.7
Environment
Jellyfin logs
FFmpeg logs
Client / Browser logs
No response
Relevant screenshots or videos
No response
Additional information
No response
@jellyfin-bot commented on GitHub (Sep 19, 2025):
This issue has gone 120 days without an update and will be closed within 21 days if there is no new activity. To prevent this issue from being closed, please confirm the issue has not already been fixed by providing updated examples or logs.
If you have any questions you can use one of several ways to contact us.
@lukaslindnermusic commented on GitHub (Sep 19, 2025):
no, this is not stale!
(god, I hate stale-bots 🙈😅)