add err
Some checks failed
Build on push and PRs / build (push) Failing after 4s

This commit is contained in:
2025-02-03 20:14:44 +03:00
parent c84fe2feb6
commit 63a707e70a

View File

@ -493,7 +493,10 @@ func infoFromURL(
for _, caption := range info.AutomaticCaptions[lang] { for _, caption := range info.AutomaticCaptions[lang] {
resp, respErr := get(caption.URL) resp, respErr := get(caption.URL)
if respErr == nil { if respErr == nil {
buf, _ := io.ReadAll(resp.Body) buf, err := io.ReadAll(resp.Body)
if err != nil {
options.DebugLog.Print("err", "download "+caption.URL, err)
}
resp.Body.Close() resp.Body.Close()
caption.Bytes = buf caption.Bytes = buf
} }