Fix monitor state: never downgrade on upsert, explicitly set monitored on MonitorAlbum

This commit is contained in:
Alexander
2026-05-09 20:26:38 +02:00
parent 3ce6e23421
commit 6f31698006
4 changed files with 9 additions and 0 deletions
+4
View File
@@ -84,6 +84,10 @@ func (s *MetadataService) GetTracksByAlbumID(ctx context.Context, albumID string
return s.tracks.GetByAlbumID(ctx, albumID)
}
func (s *MetadataService) SetAlbumMonitorState(ctx context.Context, id string, state database.MonitorState) error {
return s.albums.SetMonitorState(ctx, id, state)
}
func (s *MetadataService) PersistArtist(ctx context.Context, album *metadataPb.Album, state database.MonitorState) {
if len(album.GetArtists()) == 0 {
return