self.__dict__.update({tag: ', '.join(set(value))})
def __repr__(self):
- return '%s(artist="%s", album="%s", title="%s", filename="%s")' % (
+ return '%s(artist="%s", album="%s", title="%s", file="%s")' % (
self.__class__.__name__,
self.artist,
self.album,
@property
def Artist(self):
"""Get artist object from track"""
+ if not self.artist:
+ if not self.musicbrainz_artistid:
+ return Artist(name='[unknown]',
+ mbid='125ec42a-7229-4250-afc5-e057484327fe')
+ return Artist(name='[unknown]', **self.__dict__)
return Artist(**self.__dict__)
# VIM MODLINE