diff --git a/manager.go b/manager.go index 0c0e081..654301f 100644 --- a/manager.go +++ b/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.go b/ytsync.go index 6a32717..80463d0 100644 --- a/ytsync.go +++ b/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