mirror of
https://github.com/Benexl/FastAnime.git
synced 2025-12-26 12:51:15 -08:00
22 lines
534 B
Python
22 lines
534 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 ...")
|