From d93f4633865b2e664f9f3179b83ff75ee7b3989d Mon Sep 17 00:00:00 2001 From: Niko Date: Thu, 11 Aug 2022 00:33:40 +0200 Subject: [PATCH] fix odd error with morty's date --- downloader/ytdl/Video.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/downloader/ytdl/Video.go b/downloader/ytdl/Video.go index c860f41..70b2d32 100644 --- a/downloader/ytdl/Video.go +++ b/downloader/ytdl/Video.go @@ -107,7 +107,7 @@ func (v *YtdlVideo) GetUploadTime() time.Time { mortyRelease, err := sdk.GetAPIsConfigs().GetReleasedDate(v.ID) if err != nil { logrus.Error(err) - } else { + } else if mortyRelease.ReleaseTime != "" { mortyReleaseTimestamp, err = time.ParseInLocation(time.RFC3339, mortyRelease.ReleaseTime, time.UTC) if err != nil { logrus.Error(err)