From 775e4881cbde9d1e362dbc3ce11f674b54b15712 Mon Sep 17 00:00:00 2001 From: Niko Storni Date: Thu, 6 Aug 2020 00:30:48 +0200 Subject: [PATCH] invert logic so that we don't flood slack --- downloader/downloader.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/downloader/downloader.go b/downloader/downloader.go index 0dc12de..3d8eb57 100644 --- a/downloader/downloader.go +++ b/downloader/downloader.go @@ -84,10 +84,10 @@ GetTime: if err != nil { return nil, errors.Err(err) } - slack(":exclamation: Got an accurate time for %s", videoID) + //slack(":exclamation: Got an accurate time for %s", videoID) video.UploadDateForReal = parsed } else { - //slack(":warning: Could not get accurate time for %s. Falling back to time from upload ytdl: %s.", videoID, video.UploadDate) + slack(":warning: Could not get accurate time for %s. Falling back to time from upload ytdl: %s.", videoID, video.UploadDate) // fall back to UploadDate from youtube-dl video.UploadDateForReal, err = time.Parse("20060102", video.UploadDate) if err != nil {