partially fix prefill error

skip failed videos rather than failing
This commit is contained in:
Niko Storni 2018-04-17 11:57:20 -04:00
parent a5d371ca47
commit 540e9057e7
No known key found for this signature in database
GPG key ID: F37FE63398800368
2 changed files with 2 additions and 6 deletions

View file

@ -123,8 +123,6 @@ func (s *Sync) ensureEnoughUTXOs() error {
return err return err
} else if prefillTx == nil { } else if prefillTx == nil {
return errors.Err("no response") return errors.Err("no response")
} else if !prefillTx.Complete || !prefillTx.Broadcast {
return errors.Err("failed to prefill addresses")
} }
wait := 15 * time.Second wait := 15 * time.Second

View file

@ -235,13 +235,11 @@ func (s *Sync) startWorker(workerNum int) {
strings.Contains(err.Error(), "download error: AccessDenied: Access Denied") || strings.Contains(err.Error(), "download error: AccessDenied: Access Denied") ||
strings.Contains(err.Error(), "Playback on other websites has been disabled by the video owner") { strings.Contains(err.Error(), "Playback on other websites has been disabled by the video owner") {
log.Println("This error should not be retried at all") log.Println("This error should not be retried at all")
} else if tryCount >= s.MaxTries { } else if tryCount < s.MaxTries{
log.Printf("Video failed after %d retries, exiting", s.MaxTries)
s.stop.Stop()
} else {
log.Println("Retrying") log.Println("Retrying")
continue continue
} }
log.Printf("Video failed after %d retries, skipping", s.MaxTries)
} }
} }
break break