feat(download screen):implement download capabilities

This commit is contained in:
Benex254
2024-06-12 16:06:45 +03:00
parent 018bccbaab
commit ef0083fa5a
11 changed files with 172 additions and 49 deletions

View File

@@ -5,3 +5,17 @@ class DownloadsScreenModel(BaseScreenModel):
"""
Handles the download screen logic
"""
def update_download_progress(self, d):
print(
d["filename"],
d["downloaded_bytes"],
d["total_bytes"],
d.get("total_bytes"),
d["elapsed"],
d["eta"],
d["speed"],
d.get("percent"),
)
if d["status"] == "finished":
print("Done downloading, now converting ...")