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:
parent
c798257f00
commit
210e1705e7
@ -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)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user