download process: added optimistic update.

This commit is contained in:
2024-04-09 09:46:01 +02:00
parent 15ab37de11
commit 566f0f2ac2

View File

@@ -270,6 +270,12 @@ func (p *Process) GetFormatsSync() (DownloadFormats, error) {
}
func (p *Process) SetPending() {
// Since video's title isn't available yet, fill in with the URL.
p.Info = DownloadInfo{
URL: p.Url,
Title: p.Url,
CreatedAt: time.Now(),
}
p.Progress.Status = StatusPending
}