fixed one incorrect invocation and the response format to plchangesposid

--HG--
extra : convert_revision : svn%3A41726ec3-264d-0410-9c23-a9f1637257cc/trunk%40181
This commit is contained in:
adrian.sampson 2009-04-05 05:05:08 +00:00
parent 2a4153a411
commit aab2d2cbb3

View file

@ -423,7 +423,7 @@ class BaseServer(object):
Also a dummy implementation.
"""
for idx, track in enumerate(self.playlist):
conn.send('Pos: ' + str(idx),
conn.send('cpos: ' + str(idx),
'Id: ' + str(track.id),
)
@ -934,7 +934,7 @@ class Server(BaseServer):
super(Server, self).cmd_pause(conn, state)
if self.paused:
self.player.pause()
elif self.playing:
elif self.player.playing:
self.player.play()
def cmd_stop(self, conn):