mirror of https://github.com/Jackett/Jackett
don't set publish_date if it's not available
This commit is contained in:
parent
0846ea6a98
commit
df85d334a3
|
@ -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")
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue