handle invidious error 403
Bi-Rabittoh andronacomarco@gmail.com
Sun, 18 Feb 2024 12:55:52 +0100
1 files changed,
3 insertions(+),
0 deletions(-)
jump to
M
invidious/api.go
→
invidious/api.go
@@ -28,6 +28,9 @@ defer resp.Body.Close()
if resp.StatusCode != http.StatusOK { logger.Warn("Invidious gave the following status code: ", resp.StatusCode) + if resp.StatusCode == http.StatusForbidden { + return nil, http.StatusInternalServerError + } return nil, http.StatusNotFound }