mpd: Fix list commands with 3 arguments (fixes #817)

List commands with 3 arguments should return albums, not artists.

(cherry picked from commit ec413126f1)
This commit is contained in:
Trygve Aaberge 2014-08-05 18:46:16 +02:00 committed by Stein Magnus Jodal
parent c798257f00
commit 210e1705e7

View File

@ -257,7 +257,7 @@ def list_(context, *args):
if len(parameters) == 1:
if field != 'album':
raise exceptions.MpdArgError('should be "Album" for 3 arguments')
return _list_artist(context, {'artist': parameters})
return _list_album(context, {'artist': parameters})
try:
query = _query_from_mpd_search_parameters(parameters, _LIST_MAPPING)