mirror of
https://github.com/Radarr/Radarr.git
synced 2024-11-07 03:22:37 +01:00
restored a change that wasn't needed after queue json fix.
This commit is contained in:
parent
3de5522444
commit
481a8ceb97
@ -78,7 +78,7 @@ public virtual bool IsInQueue(EpisodeParseResult newParseResult)
|
||||
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 @@ public virtual List<SabQueueItem> GetQueue(int start = 0, int limit = 0)
|
||||
|
||||
CheckForError(response);
|
||||
|
||||
var items = JsonConvert.DeserializeObject<SabQueue>(JObject.Parse(response).SelectToken("queue").ToString()).Items;
|
||||
return items ?? new List<SabQueueItem>();
|
||||
return JsonConvert.DeserializeObject<SabQueue>(JObject.Parse(response).SelectToken("queue").ToString()).Items;
|
||||
}
|
||||
|
||||
public virtual List<SabHistoryItem> GetHistory(int start = 0, int limit = 0)
|
||||
|
Loading…
Reference in New Issue
Block a user