feat: report STRM tree batch progress

This commit is contained in:
ShukeBta
2026-07-02 21:48:53 +08:00
parent 87928cfa4d
commit 1afc69baa0
5 changed files with 30 additions and 10 deletions
+12 -9
View File
@@ -25,15 +25,18 @@ type GenerateSTRMOptions struct {
}
type GenerateSTRMResult struct {
LibraryID string `json:"library_id"`
OutputDir string `json:"output_dir"`
Generated int `json:"generated"`
Updated int `json:"updated"`
Skipped int `json:"skipped"`
Cleaned int `json:"cleaned"`
Previewed int `json:"previewed,omitempty"`
Errors []string `json:"errors,omitempty"`
Items []GenerateSTRMItem `json:"items,omitempty"`
LibraryID string `json:"library_id"`
OutputDir string `json:"output_dir"`
Generated int `json:"generated"`
Updated int `json:"updated"`
Skipped int `json:"skipped"`
Cleaned int `json:"cleaned"`
Total int `json:"total,omitempty"`
Remaining int `json:"remaining,omitempty"`
BatchLimited bool `json:"batch_limited,omitempty"`
Previewed int `json:"previewed,omitempty"`
Errors []string `json:"errors,omitempty"`
Items []GenerateSTRMItem `json:"items,omitempty"`
}
type GenerateSTRMItem struct {