partially fix prefill error
skip failed videos rather than failing
This commit is contained in:
parent
88f2a04191
commit
3523de22ea
2 changed files with 2 additions and 6 deletions
2
setup.go
2
setup.go
|
@ -123,8 +123,6 @@ func (s *Sync) ensureEnoughUTXOs() error {
|
|||
return err
|
||||
} else if prefillTx == nil {
|
||||
return errors.Err("no response")
|
||||
} else if !prefillTx.Complete || !prefillTx.Broadcast {
|
||||
return errors.Err("failed to prefill addresses")
|
||||
}
|
||||
|
||||
wait := 15 * time.Second
|
||||
|
|
|
@ -235,13 +235,11 @@ func (s *Sync) startWorker(workerNum int) {
|
|||
strings.Contains(err.Error(), "download error: AccessDenied: Access Denied") ||
|
||||
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")
|
||||
} else if tryCount >= s.MaxTries {
|
||||
log.Printf("Video failed after %d retries, exiting", s.MaxTries)
|
||||
s.stop.Stop()
|
||||
} else {
|
||||
} else if tryCount < s.MaxTries{
|
||||
log.Println("Retrying")
|
||||
continue
|
||||
}
|
||||
log.Printf("Video failed after %d retries, skipping", s.MaxTries)
|
||||
}
|
||||
}
|
||||
break
|
||||
|
|
Loading…
Reference in a new issue