From 35faeb7acd3603e2db10db13f57c597273e897be Mon Sep 17 00:00:00 2001 From: Damyan Ivanov Date: Thu, 11 Nov 2021 20:03:47 +0000 Subject: [PATCH] fix filling album information some songs have Artist, some have AlbumArtist. mpd-feeder prefers the later, but takes the former too --- bin/mpd-feeder | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/mpd-feeder b/bin/mpd-feeder index d553ea3..42e3f7b 100755 --- a/bin/mpd-feeder +++ b/bin/mpd-feeder @@ -299,7 +299,8 @@ SQL foreach my $entry (@$rows) { next unless exists $entry->{file}; $self->db_store_song( $entry->{file}, - $entry->{AlbumArtist}, $entry->{Album} ); + $entry->{AlbumArtist} // $entry->{Artist}, + $entry->{Album} ); $song_count++; } -- 2.39.5