From 37c15954c0f39cd5801fe7b3ed6110d303628879 Mon Sep 17 00:00:00 2001 From: Niko Storni Date: Wed, 8 Aug 2018 18:15:17 -0400 Subject: [PATCH] small bug fixes --- ytsync/manager.go | 4 ++-- ytsync/ytsync.go | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/ytsync/manager.go b/ytsync/manager.go index 0c0e081..654301f 100644 --- a/ytsync/manager.go +++ b/ytsync/manager.go @@ -253,7 +253,7 @@ func (s SyncManager) Start() error { time.Sleep(5 * time.Minute) } for i, sync := range syncs { - SendInfoToSlack("Syncing %s (%s) to LBRY! (iteration %d/%d - total session iterations: %d)", sync.LbryChannelName, sync.YoutubeChannelID, i+1, len(syncs), syncCount) + SendInfoToSlack("Syncing %s (%s) to LBRY! (iteration %d/%d - total session iterations: %d)", sync.LbryChannelName, sync.YoutubeChannelID, i+1, len(syncs), syncCount+1) err := sync.FullCycle() if err != nil { fatalErrors := []string{ @@ -267,7 +267,7 @@ func (s SyncManager) Start() error { } SendInfoToSlack("A non fatal error was reported by the sync process. %s\nContinuing...", err.Error()) } - SendInfoToSlack("Syncing %s (%s) reached an end. (Iteration %d/%d - total session iterations: %d))", sync.LbryChannelName, sync.YoutubeChannelID, i+1, len(syncs), syncCount) + SendInfoToSlack("Syncing %s (%s) reached an end. (Iteration %d/%d - total session iterations: %d))", sync.LbryChannelName, sync.YoutubeChannelID, i+1, len(syncs), syncCount+1) syncCount++ if sync.IsInterrupted() || (s.Limit != 0 && syncCount >= s.Limit) { shouldInterruptLoop = true diff --git a/ytsync/ytsync.go b/ytsync/ytsync.go index 6a32717..80463d0 100644 --- a/ytsync/ytsync.go +++ b/ytsync/ytsync.go @@ -132,7 +132,6 @@ func (s *Sync) FullCycle() (e error) { //conditions for which a channel shouldn't be marked as failed noFailConditions := []string{ "this youtube channel is being managed by another server", - "channel is already up to date", } if util.SubstringInSlice(e.Error(), noFailConditions) { return