'Returns the index for the previous song to play.
It also considers random and repeat flags.
No boundaries are checked.'

def _prev_idx(self):

    if self.repeat:
        return self.current_index
    if self.random:
        return self._random_idx()
    return (self.current_index - 1)
