From 9de1b61459c273d14ec00e37454a5fab8dced64d Mon Sep 17 00:00:00 2001 From: Alex Grintsvayg Date: Tue, 9 Jan 2018 10:49:21 -0500 Subject: [PATCH] minor --- ytsync/setup.go | 5 ++++- ytsync/ytsync.go | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ytsync/setup.go b/ytsync/setup.go index 4b0b692..b161d42 100644 --- a/ytsync/setup.go +++ b/ytsync/setup.go @@ -47,6 +47,9 @@ func (s *Sync) walletSetup() error { address := string(*addressResp) amountToAdd *= 1.5 // add 50% margin for fees, future publishes, etc + if amountToAdd < 1 { + amountToAdd = 1 + } log.Printf("Adding %f credits", amountToAdd) lbrycrdd, err := lbrycrd.NewWithDefaultURL() if err != nil { @@ -114,7 +117,7 @@ func (s *Sync) ensureEnoughUTXOs() error { s.waitUntilUTXOsConfirmed() } - target := 50 + target := 30 count := 0 for _, utxo := range *utxolist { diff --git a/ytsync/ytsync.go b/ytsync/ytsync.go index b0cddc1..099d317 100644 --- a/ytsync/ytsync.go +++ b/ytsync/ytsync.go @@ -207,6 +207,7 @@ func (s *Sync) startWorker(workerNum int) { } else if s.MaxTries > 1 { if strings.Contains(err.Error(), "non 200 status code received") || strings.Contains(err.Error(), " reason: 'This video contains content from") || + strings.Contains(err.Error(), "dont know which claim to update") || 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 {