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

List commands with 3 arguments should return albums, not artists.
This commit is contained in:
Trygve Aaberge 2014-08-05 18:46:16 +02:00
parent 9771eda230
commit ec413126f1

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)