mirror of
https://github.com/Benexl/FastAnime.git
synced 2026-01-13 21:36:25 -08:00
feat(download screen):implement download capabilities
This commit is contained in:
@@ -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 ...")
|
||||
|
||||
Reference in New Issue
Block a user