From 261751727b6547b1f711a860c14d5e74c51f30c4 Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Sun, 15 Sep 2013 17:59:47 -0700 Subject: [PATCH] Couple minor download spec changes --- .../Specifications/AcceptableSizeSpecification.cs | 5 ++--- .../Specifications/NotRestrictedReleaseSpecification.cs | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/NzbDrone.Core/DecisionEngine/Specifications/AcceptableSizeSpecification.cs b/NzbDrone.Core/DecisionEngine/Specifications/AcceptableSizeSpecification.cs index ebf0ef813..1d6f5af7f 100644 --- a/NzbDrone.Core/DecisionEngine/Specifications/AcceptableSizeSpecification.cs +++ b/NzbDrone.Core/DecisionEngine/Specifications/AcceptableSizeSpecification.cs @@ -57,9 +57,8 @@ namespace NzbDrone.Core.DecisionEngine.Specifications //Multiply maxSize by Series.Runtime maxSize = maxSize * subject.Series.Runtime * subject.Episodes.Count; - //Check if there was only one episode parsed - //and it is the first or last episode of the season - if (subject.Episodes.Count == 1 && _episodeService.IsFirstOrLastEpisodeOfSeason(subject.Episodes.Single().Id)) + //Check if there was only one episode parsed and it is the first + if (subject.Episodes.Count == 1 && subject.Episodes.First().EpisodeNumber == 1) { maxSize = maxSize * 2; } diff --git a/NzbDrone.Core/DecisionEngine/Specifications/NotRestrictedReleaseSpecification.cs b/NzbDrone.Core/DecisionEngine/Specifications/NotRestrictedReleaseSpecification.cs index 4c403ac31..628b8183e 100644 --- a/NzbDrone.Core/DecisionEngine/Specifications/NotRestrictedReleaseSpecification.cs +++ b/NzbDrone.Core/DecisionEngine/Specifications/NotRestrictedReleaseSpecification.cs @@ -21,7 +21,7 @@ namespace NzbDrone.Core.DecisionEngine.Specifications { get { - return "Contrains restricted term."; + return "Contains restricted term."; } }