From: Damyan Ivanov Date: Thu, 11 Nov 2021 20:03:47 +0000 (+0000) Subject: fix filling album information X-Git-Url: https://git.ktnx.net/?a=commitdiff_plain;h=35faeb7acd3603e2db10db13f57c597273e897be;p=mpd-feeder.git fix filling album information some songs have Artist, some have AlbumArtist. mpd-feeder prefers the later, but takes the former too --- 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++; }