feat: spool media inputs to disk and report producer progress (#1520)

This commit is contained in:
Levi authored and GitHub committed 2026-09-18 22:17:22 +08:00
1 parent 38750d8505
commit b1dd46cc7c
37 files changed
+1831 -375

No files matched your search

+5
View File
@@ -7,6 +7,7 @@ import (
"github.com/GopeedLab/gopeed/internal/controller"
"github.com/GopeedLab/gopeed/internal/fetcher"
"github.com/GopeedLab/gopeed/internal/production"
"github.com/GopeedLab/gopeed/internal/protocol/bt"
"github.com/GopeedLab/gopeed/internal/protocol/ed2k"
"github.com/GopeedLab/gopeed/internal/protocol/hls"
@@ -32,6 +33,9 @@ type Task struct {
CreatedAt time.Time `json:"createdAt"`
UpdatedAt time.Time `json:"updatedAt"`
producer production.Source
producerReceived int64
fetcherManager fetcher.FetcherManager
fetcher fetcher.Fetcher
timer *util.Timer
@@ -184,6 +188,7 @@ type DownloaderConfig struct {
RefreshInterval int // RefreshInterval time duration to refresh task progress(ms)
Storage Storage
StorageDir string
TempDir string
WhiteDownloadDirs []string
WebViewProvider enginewebview.Provider