Add GetArtists RPC with artist monitor state (monitored/unmonitored/excluded)
This commit is contained in:
@@ -62,12 +62,13 @@ func (s *MetadataService) persistArtist(ctx context.Context, album *metadataPb.A
|
||||
}
|
||||
|
||||
err := s.artists.Create(ctx, &database.Artist{
|
||||
ExternalID: artist.GetId(),
|
||||
Name: artist.GetName(),
|
||||
ArtistType: artist.GetArtistType(),
|
||||
Country: artist.GetCountry(),
|
||||
Genres: genres,
|
||||
ImageURL: artist.GetImageUrl(),
|
||||
ExternalID: artist.GetId(),
|
||||
Name: artist.GetName(),
|
||||
ArtistType: artist.GetArtistType(),
|
||||
Country: artist.GetCountry(),
|
||||
Genres: genres,
|
||||
ImageURL: artist.GetImageUrl(),
|
||||
MonitorState: database.ArtistMonitored,
|
||||
})
|
||||
if err != nil {
|
||||
log.Warn().Err(err).Str("name", artist.GetName()).Msg("failed to persist artist")
|
||||
|
||||
Reference in New Issue
Block a user