def update(self): #this method steals cycles, its not a new thread items_list = api.get_checking_update() for download_item in items_list: try: row = self.rows_buffer[download_item.id] row[1] = True if download_item.link_status != cons.LINK_DEAD else False row[2] = download_item.link_status row[3] = download_item.name row[4] = download_item.host row[5] = misc.size_format(download_item.size) row[6] = download_item.link_status_msg except KeyError as err: logger.debug(err) self.__model.refresh()
def update_checking_status(self): #this method steals cycles, its not a new thread """""" #self.download_manager.clear_pending() #Erase pending_downloads list. items_list = api.get_checking_update() for download_item in items_list: #link_status, file_name, host, size = self.download_manager.plugin_link_checking(download_item) for row in self.store: if row[0] == download_item.id: row[2] = download_item.link_status row[3] = download_item.name row[4] = download_item.host row[5] = misc.size_format(download_item.size) row[6] = download_item.link_status_msg #if not self.download_manager.pending_downloads: #return False return True #keep it updating,
def update_checking_status( self): #this method steals cycles, its not a new thread """""" #self.download_manager.clear_pending() #Erase pending_downloads list. items_list = api.get_checking_update() for download_item in items_list: #link_status, file_name, host, size = self.download_manager.plugin_link_checking(download_item) for row in self.store: if row[0] == download_item.id: row[2] = download_item.link_status row[3] = download_item.name row[4] = download_item.host row[5] = misc.size_format(download_item.size) row[6] = download_item.link_status_msg #if not self.download_manager.pending_downloads: #return False return True #keep it updating,