Enhance PVideoDl with finished_at tracking for downloads and UI updates. Added finished_at field to Download model, updated storage to handle legacy databases, and improved frontend to display recent downloads. Refactored scripts for better clarity and error handling.
This commit is contained in:
@@ -37,6 +37,7 @@ class Download(BaseModel):
|
||||
eta: float | None = None # секунд до конца, оценка
|
||||
error: str | None = None
|
||||
created_at: datetime = Field(default_factory=_now)
|
||||
finished_at: datetime | None = None # момент перехода в done/failed
|
||||
|
||||
|
||||
class CreateDownloads(BaseModel):
|
||||
|
||||
Reference in New Issue
Block a user