1
0
mirror of https://github.com/Radarr/Radarr.git synced 2026-04-21 22:05:43 -04:00

Fixed: Delays use minutes not hours

This commit is contained in:
Mark McDowall
2014-12-09 20:48:25 -08:00
parent b4c6284fae
commit a5dd0cce29
4 changed files with 21 additions and 8 deletions
@@ -40,6 +40,18 @@ namespace NzbDrone.Core.Parser.Model
private set { }
}
public Double AgeMinutes
{
get
{
return DateTime.UtcNow.Subtract(PublishDate).TotalMinutes;
}
//This prevents manually downloading a release from blowing up in mono
//TODO: Is there a better way?
private set { }
}
public override string ToString()
{
return String.Format("[{0}] {1} [{2}]", PublishDate, Title, Size);