partially fix prefill error
skip failed videos rather than failing
This commit is contained in:
parent
a5d371ca47
commit
540e9057e7
2 changed files with 2 additions and 6 deletions
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue