Fixed exception when there's no artist name in the metadata when scanning

This commit is contained in:
Henrik Olsson 2011-02-16 19:42:56 +01:00
parent b89150f5d2
commit 5dc6a17d20

View File

@ -85,7 +85,7 @@ def artists_to_mpd_format(artists):
:rtype: string
"""
artists.sort(key=lambda a: a.name)
return u', '.join([a.name for a in artists])
return u', '.join([a.name or '' for a in artists])
def tracks_to_mpd_format(tracks, start=0, end=None, cpids=None):
"""