self.setLayout(layout)
If you are a long-time EagleGet user switching to Linux, follow these steps to replicate your workflow: eagleget for linux
# Update chunk downloaded sizes for chunk in self.chunks: if file_size > chunk.start: chunk.downloaded = min(chunk.end - chunk.start + 1, file_size - chunk.start) md5) VALUES (?
if == ' main ': main()
def save_task(self, task: DownloadTask): conn = sqlite3.connect(self.db_path) cursor = conn.cursor() cursor.execute(''' INSERT OR REPLACE INTO downloads (id, url, filename, save_path, total_size, downloaded_size, status, threads, speed, created_at, completed_at, md5) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) ''', ( task.id, task.url, task.filename, task.save_path, task.total_size, task.downloaded_size, task.status.value, task.threads, task.speed, task.created_at.isoformat(), task.completed_at.isoformat() if task.completed_at else None, task.md5 )) conn.commit() conn.close() task.completed_at.isoformat() if task.completed_at else None
def resume_download(self, task_id: str): if task_id in self.tasks: self.start_download(task_id)