From 481a8ceb9778659616f93b996662bad979b67758 Mon Sep 17 00:00:00 2001 From: "kay.one" Date: Fri, 20 Jan 2012 00:32:50 -0800 Subject: [PATCH] restored a change that wasn't needed after queue json fix. --- NzbDrone.Core/Providers/SabProvider.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/NzbDrone.Core/Providers/SabProvider.cs b/NzbDrone.Core/Providers/SabProvider.cs index d60299475..bcadcd613 100644 --- a/NzbDrone.Core/Providers/SabProvider.cs +++ b/NzbDrone.Core/Providers/SabProvider.cs @@ -78,7 +78,7 @@ namespace NzbDrone.Core.Providers var queue = GetQueue(); return queue.Any(c => String.Equals(c.ParseResult.SeriesTitle, newParseResult.Series.Title, StringComparison.InvariantCultureIgnoreCase) && - c.ParseResult.EpisodeNumbers.Any(e=> newParseResult.EpisodeNumbers.Contains(e))&& + c.ParseResult.EpisodeNumbers.Any(e => newParseResult.EpisodeNumbers.Contains(e)) && c.ParseResult.SeasonNumber == newParseResult.SeasonNumber && c.ParseResult.Quality >= newParseResult.Quality); } @@ -91,8 +91,7 @@ namespace NzbDrone.Core.Providers CheckForError(response); - var items = JsonConvert.DeserializeObject(JObject.Parse(response).SelectToken("queue").ToString()).Items; - return items ?? new List(); + return JsonConvert.DeserializeObject(JObject.Parse(response).SelectToken("queue").ToString()).Items; } public virtual List GetHistory(int start = 0, int limit = 0)