fix: resolve timeout issues and implement format retrieval retries
All checks were successful
Build only (for PRs) / build-only (pull_request) Successful in 3m36s

This commit is contained in:
2026-03-12 20:55:42 -04:00
parent 509dab5395
commit a6dc4e27b9
2 changed files with 27 additions and 2 deletions

View File

@@ -19,7 +19,9 @@ func GetFormats(url string) (*FormatOptions, error) {
SkipDownload().
DumpJSON()
result, err := dl.Run(context.TODO(), url)
ctx, cancel := context.WithTimeout(context.Background(), 2*time.Minute)
defer cancel()
result, err := dl.Run(ctx, url)
if err != nil {
return nil, err
}