From 566f0f2ac2c89c55f87e339e01bd0ef999619755 Mon Sep 17 00:00:00 2001 From: marcobaobao Date: Tue, 9 Apr 2024 09:46:01 +0200 Subject: [PATCH] download process: added optimistic update. --- server/internal/process.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/server/internal/process.go b/server/internal/process.go index 498fdbe..9d38a5a 100644 --- a/server/internal/process.go +++ b/server/internal/process.go @@ -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 }