You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ifstrings.Contains(curLine, "429") ||strings.Contains(curLine, "Too Many Requests") {
156
-
returnfmt.Errorf("YouTube rate limit exceeded. Try again later or use different yt-dlp arguments like '--sleep-requests 1' to slow down requests.")
154
+
debuglog.Debug(debuglog.Trace, "%s\n", curLine)
155
+
errorMessages:=map[string]string{
156
+
"429": "YouTube rate limit exceeded. Try again later or use different yt-dlp arguments like '--sleep-requests 1' to slow down requests.",
157
+
"Too Many Requests": "YouTube rate limit exceeded. Try again later or use different yt-dlp arguments like '--sleep-requests 1' to slow down requests.",
158
+
"Sign in to confirm you're not a bot": "YouTube requires authentication (bot detection). Use --yt-dlp-args='--cookies-from-browser BROWSER' where BROWSER is chrome, firefox, brave, etc.",
159
+
"Use --cookies-from-browser": "YouTube requires authentication (bot detection). Use --yt-dlp-args='--cookies-from-browser BROWSER' where BROWSER is chrome, firefox, brave, etc.",
157
160
}
158
-
ifstrings.Contains(curLine, "Sign in to confirm you're not a bot") ||strings.Contains(curLine, "Use --cookies-from-browser") {
159
-
returnfmt.Errorf("YouTube requires authentication (bot detection). Use --yt-dlp-args='--cookies-from-browser BROWSER' where BROWSER is chrome, firefox, brave, etc.")
160
-
}
161
-
ifstrings.Contains(curLine, "There are no subtitles for the requested languages") {
162
-
returnfmt.Errorf("There are no subtitles for the requested languages")
0 commit comments