don't set publish_date if it's not available

This commit is contained in:
kaso17 2017-01-16 18:52:56 +01:00
parent 0846ea6a98
commit df85d334a3
1 changed files with 1 additions and 1 deletions

View File

@ -147,7 +147,7 @@ namespace Jackett.Controllers
size = (long)release.Size / (1024 * 1024), // This is in MB
leechers = (int)release.Peers - (int)release.Seeders,
seeders = (int)release.Seeders,
publish_date = release.PublishDate.ToUniversalTime().ToString("s")
publish_date = r.PublishDate == DateTime.MinValue ? null : release.PublishDate.ToUniversalTime().ToString("s")
});
}
}