def METHOD_NAME(self, type, player, track):
    current_url = track.get_loc_for_io()
    if current_url == self.current_url:
        return
    self.stop_ripping()
    if self.toggle_record(False):
        self.button.set_active(False)
        self.remove_callbacks()