Manual search shouldn't die on mono

This commit is contained in:
Mark McDowall 2014-07-10 09:26:20 -07:00
parent c5a62bfdf1
commit 70af42e69c
2 changed files with 15 additions and 11 deletions

View File

@ -32,6 +32,10 @@ namespace NzbDrone.Core.Parser.Model
{
return !String.IsNullOrWhiteSpace(AirDate);
}
//This prevents manually downloading a release from blowing up in mono
//TODO: Is there a better way?
private set { }
}
public bool IsAbsoluteNumbering
@ -40,6 +44,10 @@ namespace NzbDrone.Core.Parser.Model
{
return AbsoluteEpisodeNumbers.Any();
}
//This prevents manually downloading a release from blowing up in mono
//TODO: Is there a better way?
private set { }
}
public bool IsPossibleSpecialEpisode
@ -52,6 +60,10 @@ namespace NzbDrone.Core.Parser.Model
(EpisodeNumbers.Length == 0 || SeasonNumber == 0) ||
!SeriesTitle.IsNullOrWhiteSpace() && Special);
}
//This prevents manually downloading a release from blowing up in mono
//TODO: Is there a better way?
private set {}
}
public override string ToString()

View File

@ -12,7 +12,7 @@ namespace NzbDrone.Core.Parser.Model
public string CommentUrl { get; set; }
public String Indexer { get; set; }
public DownloadProtocol DownloadProtocol { get; set; }
public int TvRageId { get; set; }
public DateTime PublishDate { get; set; }
public Int32 Age
@ -24,10 +24,7 @@ namespace NzbDrone.Core.Parser.Model
//This prevents manually downloading a release from blowing up in mono
//TODO: Is there a better way?
private set
{
}
private set { }
}
public Double AgeHours
@ -39,14 +36,9 @@ namespace NzbDrone.Core.Parser.Model
//This prevents manually downloading a release from blowing up in mono
//TODO: Is there a better way?
private set
{
}
private set { }
}
public int TvRageId { get; set; }
public override string ToString()
{
return String.Format("[{0}] {1} [{2}]", PublishDate, Title, Size);