Fix playlistinfo handling to match mpd behaviour
This commit is contained in:
parent
e7014b9fb7
commit
09ffd91845
@ -429,11 +429,14 @@ class MpdFrontend(object):
|
||||
argument is given, displays information only for the song
|
||||
``SONGPOS`` or the range of songs ``START:END``.
|
||||
|
||||
*ncmpc:*
|
||||
*ncmpc and mpc:*
|
||||
|
||||
- uses negative indexes, like ``playlistinfo "-1"``, to request
|
||||
information on the last track in the playlist.
|
||||
the entire playlist
|
||||
"""
|
||||
if songpos == "-1":
|
||||
songpos = None
|
||||
|
||||
if songpos is not None:
|
||||
songpos = int(songpos)
|
||||
start = songpos
|
||||
|
||||
Loading…
Reference in New Issue
Block a user