def pause_resume(self):
        """Toggle between pausing or resuming downloading."""
        if self.is_paused():
            urlopen(self.url + "&mode=resume")
        else:
            urlopen(self.url + "&mode=pause")