mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-05-04 18:09:12 +03:00
[PR #15974] fix: artist metadata not saving properly #14482
Reference in New Issue
Block a user
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?
📋 Pull Request Information
Original PR: https://github.com/jellyfin/jellyfin/pull/15974
Author: @Almamu
Created: 1/8/2026
Status: 🔄 Open
Base:
master← Head:master📝 Commits (2)
87dbeb0fix: revert DtoService.cs changes on5a6d9180fe, fixes editing artists on metadata from #152832226f9afix: make artist creation happen on item save📊 Changes
5 files changed (+40 additions, -76 deletions)
View changed files
📝
Emby.Server.Implementations/Dto/DtoService.cs(+3 -62)📝
Emby.Server.Implementations/Library/LibraryManager.cs(+27 -2)📝
Jellyfin.Api/Controllers/ItemsController.cs(+3 -11)📝
Jellyfin.Server.Implementations/Item/BaseItemRepository.cs(+1 -1)📝
MediaBrowser.Controller/Library/ILibraryManager.cs(+6 -0)📄 Description
Changes
Partially reverted commit
5a6d9180fewhich introduced a regression in artist creation.Issues
Fixes metadata edition from #15283
Some questions regarding this metadata
The way artist creation is handled is really confusing. As it is right now, artists are added to the BaseItems table when an Item containing unknown Artists is returned by the API. This was done for both Album Artists and Artists, but on
5a6d9180fethe code that was handling that was changed to prevent duplication. Judging by the changes made in that commit, this change wasn't actually necessary and should come back, although in the future I feel like the artist should be added to the database on creation instead of when it's returned by any API endpoint? Maybe I can work on that next if no one is working on it?During the investigation of this issue I also came across three ways of saving Artist and Album Artists, which sounds a bit backwards to me. One is in the BaseItems table, another in each BaseItems record (there's an Artist and AlbumArtist field that contains a list of them separated by
|) and another table ItemValues (joined to ItemValuesMap) that has the artist info again, maybe we should look into consolidating this into just one?🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.