From cafbe3c1a968313df28dcc225a507b9f22f90b54 Mon Sep 17 00:00:00 2001 From: dilap54 Date: Mon, 3 Feb 2025 20:15:24 +0300 Subject: [PATCH] captions err --- goutubedl.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/goutubedl.go b/goutubedl.go index 77b500e..239ebc3 100644 --- a/goutubedl.go +++ b/goutubedl.go @@ -495,10 +495,12 @@ func infoFromURL( if respErr == nil { buf, err := io.ReadAll(resp.Body) if err != nil { - options.DebugLog.Print("err", "download "+caption.URL, err) + options.DebugLog.Print("err", "download captions "+caption.URL, err) } resp.Body.Close() caption.Bytes = buf + } else { + options.DebugLog.Print("err", "download captions "+caption.URL, err) } }