Fix monitor state: never downgrade on upsert, explicitly set monitored on MonitorAlbum
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user