1
0
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:
Maksym Pavlenko
2019-12-21 13:58:34 -08:00
parent f34f64e24b
commit e1f49c013e

View File

@@ -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
}