From 7ca027cb386b85acf392c0c5dbeda45bd9483d4e Mon Sep 17 00:00:00 2001 From: Date: Thu, 24 Jan 2013 22:39:57 -0800 Subject: [PATCH] Use ALBUMARTIST as filename if available, fallback to ARTIST. --- fa-flacd | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/fa-flacd b/fa-flacd index 7e13bd9..5e93e1f 100755 --- a/fa-flacd +++ b/fa-flacd @@ -126,7 +126,11 @@ def flac(dir, tracknum, tags): flac files represent individual tracks or whole discs.""" separator = ' ' - artist = (tags.gets('ARTIST', separator=', ') or '').replace('/', '_') + if len(tags.get('ALBUMARTIST')) > 0: + artist_tag = tags.gets('ALBUMARTIST', separator=', ') + else: + artist_tag = tags.gets('ARTIST', separator=', ') + artist = (artist_tag or '').replace('/', '_') album = (tags.gets('ALBUM', separator=separator) or '').replace('/', '_') discnum = tags.gets('DISCNUMBER') -- 2.56.0