From 6cc2a9c5ab5a2513662fe2363c4f3be78d909518 Mon Sep 17 00:00:00 2001 From: Remy Date: Thu, 11 Aug 2011 10:22:30 -0700 Subject: [PATCH] Fixed excluding Various Artists as a valid album artist --- headphones/importer.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/headphones/importer.py b/headphones/importer.py index d0841bfc..15c3b5e7 100644 --- a/headphones/importer.py +++ b/headphones/importer.py @@ -37,16 +37,14 @@ def scanMusic(dir=None): for song in results: try: f = MediaFile(song) - albumartist = f.albumartist - artist = f.artist except: logger.warn('Could not read file: %s' % song) continue else: - if albumartist and albumartist != 'Various Artists': - artist = albumartist - elif artist: - pass + if f.albumartist: + artist = f.albumartist + elif f.artist: + artist = f.artist else: continue