From 3523de22ea29d41b788ef76323bfb7f260d07479 Mon Sep 17 00:00:00 2001 From: Niko Storni Date: Tue, 17 Apr 2018 11:57:20 -0400 Subject: [PATCH] partially fix prefill error skip failed videos rather than failing --- setup.go | 2 -- ytsync.go | 6 ++---- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/setup.go b/setup.go index f73afca..5b69e85 100644 --- a/setup.go +++ b/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 diff --git a/ytsync.go b/ytsync.go index e0822a6..e480baf 100644 --- a/ytsync.go +++ b/ytsync.go @@ -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