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)