fix odd error with morty's date

This commit is contained in:
Niko 2022-08-11 00:33:40 +02:00 committed by GitHub
parent 77988c1682
commit d93f463386
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -107,7 +107,7 @@ func (v *YtdlVideo) GetUploadTime() time.Time {
mortyRelease, err := sdk.GetAPIsConfigs().GetReleasedDate(v.ID) mortyRelease, err := sdk.GetAPIsConfigs().GetReleasedDate(v.ID)
if err != nil { if err != nil {
logrus.Error(err) logrus.Error(err)
} else { } else if mortyRelease.ReleaseTime != "" {
mortyReleaseTimestamp, err = time.ParseInLocation(time.RFC3339, mortyRelease.ReleaseTime, time.UTC) mortyReleaseTimestamp, err = time.ParseInLocation(time.RFC3339, mortyRelease.ReleaseTime, time.UTC)
if err != nil { if err != nil {
logrus.Error(err) logrus.Error(err)