Skip to content

Commit

Permalink
Log warning when youtube-dl gets 429 error #69
Browse files Browse the repository at this point in the history
  • Loading branch information
mxpv committed Dec 21, 2019
1 parent f34f64e commit e1f49c0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmd/podsync/updater.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ func (u *Updater) Update(ctx context.Context, feedConfig *config.Feed) error {
// We still need to generate XML, so just stop sending download requests and
// retry next time
if strings.Contains(output, "HTTP Error 429") {
logger.WithError(err).Warnf("got too many requests error, will retry download next time")
break
}

Expand Down

0 comments on commit e1f49c0

Please sign in to comment.