mirror of
https://github.com/mxpv/podsync.git
synced 2024-05-11 05:55:04 +00:00
Log warning when youtube-dl gets 429 error #69
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user