コード例 #1
0
 def add_downloads_to_check(self, links_list, copy_link=True):
     for link in links_list:
         download_item = api.create_download_item(cons.UNKNOWN, link, copy_link=copy_link) #return download_item object
         item = [download_item.id, True, self.icons_dict[cons.LINK_CHECKING], cons.UNKNOWN, None, None, None]
         #self.items.append(item)
         self.__model.append(item)
         self.rows_buffer[item[0]] = item
     api.start_checking()
コード例 #2
0
 def add_downloads_to_check(self, links_list, copy_link=True):
     for link in links_list:
         download_item = api.create_download_item(cons.UNKNOWN, link, copy_link=copy_link)
         api.add_to_checker(download_item)
         item = [download_item.id, True, self.icons_dict[cons.LINK_CHECKING], cons.UNKNOWN, None, None, None]
         #self.items.append(item)
         self.__model.append(item)
         self.rows_buffer[item[0]] = item
     api.start_checking()
コード例 #3
0
ファイル: tab.py プロジェクト: nitely/ochDownloader
 def on_import(self):
     dialog = ImportDialog(self.parent)
     if dialog.result() == QDialog.Accepted:
         path = dialog.file_line.text().strip()
         link = dialog.link_line.text().strip()
         if path and link:
             file_path, file_name = os.path.split(path)
             download_item = api.create_download_item(file_name, link)
             download_item.path = file_path
             self.decrypt_manager.add(download_item)
             self.store(download_item)
コード例 #4
0
ファイル: tab.py プロジェクト: AbdullZ7/ochDownloader
 def on_import(self):
     dialog = ImportDialog(self.parent)
     if dialog.result() == QDialog.Accepted:
         path = dialog.file_line.text().strip()
         link = dialog.link_line.text().strip()
         if path and link:
             file_path, file_name = os.path.split(path)
             download_item = api.create_download_item(file_name, link)
             download_item.path = file_path
             self.decrypt_manager.add(download_item)
             self.store(download_item)
コード例 #5
0
ファイル: add_downloads.py プロジェクト: yckart/ochDownloader
 def links_checking(self, links_list, copy_link=True):
     for link in links_list:
         download_item = api.create_download_item(
             cons.UNKNOWN, 0, link, copy_link)  #return download_item object
         item = [
             download_item.id, True, cons.LINK_CHECKING, cons.UNKNOWN, None,
             None, None
         ]
         #self.items.append(item)
         self.__model.append(item)
         self.rows_buffer[item[0]] = item
     api.start_checking()
コード例 #6
0
 def checking_links(self, links_list, copy_link=True):
     """
     Agregar items a las columnas
     DONE: Agrergar posibilidad de recherckear items que no estan vivos.
     DONE: detener el update de la lista (desde el main_gui), cuando se cambia a otra pestania (senial switch-notebook)
     TODO: Agregar columna que muestre la url del enlace, none para los agregados desde un .och
     """
     for link in links_list:
         download_item = api.create_download_item(cons.UNKNOWN, 0, link, copy_link) #return download_item object
         self.store.append([download_item.id, True, cons.LINK_CHECKING, cons.UNKNOWN, None, None, None])
         #checking start.
         #threading.Thread(group=None, target=self.download_manager.plugin_link_checking, name=None, args=(download_item, )).start()
     api.start_checking()
     
     self.start_update()
コード例 #7
0
    def checking_links(self, links_list, copy_link=True):
        """
        Agregar items a las columnas
        DONE: Agrergar posibilidad de recherckear items que no estan vivos.
        DONE: detener el update de la lista (desde el main_gui), cuando se cambia a otra pestania (senial switch-notebook)
        TODO: Agregar columna que muestre la url del enlace, none para los agregados desde un .och
        """
        for link in links_list:
            download_item = api.create_download_item(
                cons.UNKNOWN, 0, link, copy_link)  #return download_item object
            self.store.append([
                download_item.id, True, cons.LINK_CHECKING, cons.UNKNOWN, None,
                None, None
            ])
            #checking start.
            #threading.Thread(group=None, target=self.download_manager.plugin_link_checking, name=None, args=(download_item, )).start()
        api.start_checking()

        self.start_update()