invert logic so that we don't flood slack

This commit is contained in:
Niko Storni 2020-08-06 00:30:48 +02:00
parent ec9f46f552
commit 775e4881cb

View file

@ -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 {