Skip to content

Commit

Permalink
Do not fail feed update when unable to get one episode's file size #58
Browse files Browse the repository at this point in the history
  • Loading branch information
b-abadie authored and mxpv committed Nov 26, 2019
1 parent 2c5e333 commit 59e4f5b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/podsync/updater.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,8 @@ func (u *Updater) Update(ctx context.Context, feedConfig *config.Feed) error {

// Record file size
if size, err := u.fileSize(episodePath); err != nil {
return errors.Wrap(err, "failed to get episode file size")
// Don't return on error, use estimated file size provided by builders
logger.WithError(err).Error("failed to get episode file size")
} else { //nolint
logger.Debugf("file size %d", size)
sizes[episode.ID] = size
Expand Down

0 comments on commit 59e4f5b

Please sign in to comment.