From 70af42e69cce914305f94aae32f747a9c360669e Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Thu, 10 Jul 2014 09:26:20 -0700 Subject: [PATCH] Manual search shouldn't die on mono --- .../Parser/Model/ParsedEpisodeInfo.cs | 12 ++++++++++++ src/NzbDrone.Core/Parser/Model/ReleaseInfo.cs | 14 +++----------- 2 files changed, 15 insertions(+), 11 deletions(-) diff --git a/src/NzbDrone.Core/Parser/Model/ParsedEpisodeInfo.cs b/src/NzbDrone.Core/Parser/Model/ParsedEpisodeInfo.cs index 2ab421b10..623a5b1b2 100644 --- a/src/NzbDrone.Core/Parser/Model/ParsedEpisodeInfo.cs +++ b/src/NzbDrone.Core/Parser/Model/ParsedEpisodeInfo.cs @@ -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() diff --git a/src/NzbDrone.Core/Parser/Model/ReleaseInfo.cs b/src/NzbDrone.Core/Parser/Model/ReleaseInfo.cs index 4fb3b2b7a..3aa30a432 100644 --- a/src/NzbDrone.Core/Parser/Model/ReleaseInfo.cs +++ b/src/NzbDrone.Core/Parser/Model/ReleaseInfo.cs @@ -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);