From: Date: Fri, 25 Jan 2013 06:39:57 +0000 (-0800) Subject: Use ALBUMARTIST as filename if available, fallback to ARTIST. X-Git-Url: https://diplodocus.org/git/flac-archive/commitdiff_plain/7ca027cb386b85acf392c0c5dbeda45bd9483d4e?ds=inline;hp=4cdaaa303b93816e3132e42be1879d33ab9f1139 Use ALBUMARTIST as filename if available, fallback to ARTIST. --- 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')