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()
Esempio n. 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()
Esempio n. 3
0
 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)
Esempio n. 4
0
 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)
Esempio n. 5
0
 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()
Esempio n. 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()
Esempio n. 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()