This commit is contained in:
@ -493,7 +493,10 @@ func infoFromURL(
|
||||
for _, caption := range info.AutomaticCaptions[lang] {
|
||||
resp, respErr := get(caption.URL)
|
||||
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()
|
||||
caption.Bytes = buf
|
||||
}
|
||||
|
Reference in New Issue
Block a user