Esempio n. 1
0
    def on_info_cb(self, download):
        if download.links != None:
            self.remove_download(download)

            for link in download.links:
                d = downloaders.create_download(link, self.downman)
                if d != None:
                    self.add_download(d)
        else:
            self.update_download(download)
Esempio n. 2
0
    def on_add_url (self):
        text = self.application.prompt_for_urls ()

        if text == None:
            return

        m = re.findall ('((https?|ftps?)://[^\s]*)', text)

        for i in m:
            download = downloaders.create_download (i[0], self)
            if download != None:
                self.staginglist.add_download (download)