(self, position)
Set the current videoplayer position.
        
        Plex doesn't support seeking in seconds, so calculate a percentage
        for the given position first.
        
        @param position integer in seconds
Set the current videoplayer position.
        
        Plex doesn't support seeking in seconds, so calculate a percentage
        for the given position first.
Set the current videoplayer position . Plex doesn t support seeking in seconds so calculate a percentage for the given position first .
def set_player_position(self, position):
        """
        Set the current videoplayer position.
        
        Plex doesn't support seeking in seconds, so calculate a percentage
        for the given position first.
        
        @param position integer in seconds
        """
        
        time, total = self.get_player_position()
        
        if total:
            percentage = float(position) / float(total) * 100
            self.log.debug('Position: %d total: %d percentage: %f', position, total, percentage)
            
            self.set_player_position_percentage(percentage)
def set_player_position ( self , position ) : time , total = self . get_player_position ( ) if total : percentage = float ( position ) / float ( total ) * 100 self . log . debug ( 'Position: %d total: %d percentage: %f' , position , total , percentage ) self . set_player_position_percentage ( percentage )