]> kaliko git repositories - mpd-sima.git/blobdiff - sima/client.py
Add lastfm/album mode
[mpd-sima.git] / sima / client.py
index fba50fdaf468c259febb6af304f85c2c4395ba99..80c16e530875a2b6fd68fcff717568bbb339e96d 100644 (file)
@@ -170,6 +170,16 @@ class PlayerClient(Player):
             return alb_art_search
         return self.find('artist', artist, 'album', album)
 
+    def find_albums(self, artist):
+        """
+        Special wrapper around album search:
+        Album lookup is made through AlbumArtist/Album instead of Artist/Album
+        """
+        alb_art_search = self.list('album', 'albumartist', artist,)
+        if alb_art_search:
+            return alb_art_search
+        return self.list('album', 'artist', artist)
+
     def monitor(self):
         curr = self.current
         try: