Skip to content

Commit

Permalink
small changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Dima committed Jan 29, 2024
1 parent 3e2e6a6 commit 4acf306
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/youtube/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,11 @@ func (y *YouTubeRequester) Request(req *http.Request) (*http.Response, error) {
log.Println("YouTube API quota exceeded, I'll try to use another API key..")
if len(y.conf.YtApiKeys) > y.currentApiKeyN+1 {
y.currentApiKeyN++
continue
} else {
y.currentApiKeyN = 0
return nil, ErrorApiQuota
}
return nil, ErrorApiQuota
}
if res.StatusCode != 200 {
return nil, fmt.Errorf("%d %s", res.StatusCode, req.URL.String())
Expand Down

0 comments on commit 4acf306

Please sign in to comment.