예제 #1
0
 def handle_args(self):
     return player.play()
예제 #2
0
 def handle_args(self,songId):
     try:
         return player.play(self.playlist.songIdToPosition(songId))
     except pimp.core.player.FileCannotBePlayed as e:
         raise mpdserver.MpdCommandError("File '%s' can not be played" % e.filepath,"playid")