From e16d8a9747e2e3c0a0b8e3326eb2aba6234c72be Mon Sep 17 00:00:00 2001 From: Ace Jones Date: Mon, 4 Jan 2010 17:56:20 +0100 Subject: [PATCH] Use the 'artist' field for 'album_artist' if there is no album artist set --- src/filescanner.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/filescanner.c b/src/filescanner.c index 42041a13..204b1083 100644 --- a/src/filescanner.c +++ b/src/filescanner.c @@ -171,6 +171,10 @@ fixup_tags(struct media_file_info *mfi) mfi->genre = strdup("Unknown genre"); if (!mfi->title) mfi->title = strdup(mfi->fname); + + /* If we don't have an album_artist, set it to artist */ + if (!mfi->album_artist) + mfi->album_artist = strdup(mfi->artist); }