mirror of
https://github.com/beetbox/beets.git
synced 2025-12-24 17:43:52 +01:00
added plchangesposid
--HG-- extra : convert_revision : svn%3A41726ec3-264d-0410-9c23-a9f1637257cc/trunk%40162
This commit is contained in:
parent
d47736a83d
commit
be885706bd
1 changed files with 10 additions and 0 deletions
|
|
@ -382,6 +382,16 @@ class BaseServer(object):
|
|||
"""
|
||||
for l in self.cmd_playlistinfo(): yield l
|
||||
|
||||
def cmd_plchangesposid(self, version):
|
||||
"""Like plchanges, but only yields position and id.
|
||||
|
||||
Also a dummy implementation.
|
||||
"""
|
||||
for idx, track in enumerate(self.playlist):
|
||||
yield ('Pos: ' + str(idx),
|
||||
'Id: ' + str(track.id),
|
||||
)
|
||||
|
||||
def cmd_currentsong(self):
|
||||
"""Yields information about the currently-playing song.
|
||||
"""
|
||||
|
|
|
|||
Loading…
Reference in a new issue