Fixed excluding Various Artists as a valid album artist

This commit is contained in:
Remy
2011-08-11 10:22:30 -07:00
parent 5d2ce60d4c
commit 6cc2a9c5ab
+4 -6
View File
@@ -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