mirror of
https://github.com/Benexl/FastAnime.git
synced 2026-01-01 23:39:54 -08:00
25 lines
571 B
Python
25 lines
571 B
Python
from .base_model import BaseScreenModel
|
|
|
|
|
|
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 ...")
|
|
|
|
|
|
__all__ = ["DownloadsScreenModel"]
|