X-Git-Url: http://git.kaliko.me/?a=blobdiff_plain;f=sima%2Flib%2Ftrack.py;h=5b25bd33527bad5e94ef2eb043990a1eb4dc755b;hb=0264d2f9cea7c5e60ac71234ee4f7de78b338850;hp=a938c2791776e912cc2991befeb9bb5dc45cd706;hpb=766b97a00129b73970d998976ee952f913130d68;p=mpd-sima.git diff --git a/sima/lib/track.py b/sima/lib/track.py index a938c27..5b25bd3 100644 --- a/sima/lib/track.py +++ b/sima/lib/track.py @@ -128,7 +128,10 @@ class Track: def get_artist(self): """Get artist object from track""" - return Artist(name=self.artist, mbid=self.musicbrainz_artistid) + name = self.artist + if self.albumartist and self.albumartist != 'Various Artists': + name = self.albumartist + return Artist(name=name, mbid=self.musicbrainz_artistid) # VIM MODLINE # vim: ai ts=4 sw=4 sts=4 expandtab