Fix cloud playback and organize ingest pipeline

This commit is contained in:
ShukeBta
2026-06-13 23:21:56 +08:00
parent 4b2839d753
commit 52b772ea45
18 changed files with 729 additions and 22 deletions
+3 -1
View File
@@ -98,7 +98,9 @@ func (s *STRMService) GenerateForLibrary(ctx context.Context, opts GenerateSTRMO
return nil, errors.New("output_dir required")
}
if strings.TrimSpace(opts.BaseURL) != "" && s.repo.Setting != nil {
_ = s.repo.Setting.Set(ctx, "app.server_url", strings.TrimRight(strings.TrimSpace(opts.BaseURL), "/"))
baseURL := strings.TrimRight(strings.TrimSpace(opts.BaseURL), "/")
_ = s.repo.Setting.Set(ctx, "app.server_url", baseURL)
_ = s.repo.Setting.Set(ctx, "strm.base_url", baseURL)
}
if s.repo.Setting != nil {
_ = s.repo.Setting.Set(ctx, "strm.auto_generate_enabled", strconv.FormatBool(opts.Enabled))