@asyncio.coroutine
def _goto(self, direction):
    'Helper method used for previous/next track.'
    players = (yield from self._get_players())
    if (len(players) != 0):
        if (direction == 'previous'):
            (yield from self._server.Player.Seek(players[0]['playerid'], 0))
        (yield from self._server.Player.GoTo(players[0]['playerid'], direction))
Helper method used for previous/next track.
@asyncio.coroutine
def _goto(self, direction):
    
    players = (yield from self._get_players())
    if (len(players) != 0):
        if (direction == 'previous'):
            (yield from self._server.Player.Seek(players[0]['playerid'], 0))
        (yield from self._server.Player.GoTo(players[0]['playerid'], direction))