def handle_args(self): return player.play()
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")