From a8f32009cb1a006f983112c0917a611cf2b2d2ed Mon Sep 17 00:00:00 2001 From: tidusjar Date: Sun, 14 Jun 2020 18:42:46 +0100 Subject: [PATCH] Fixed an error in the Plex & Emby Availability Checker --- src/Ombi.Schedule/Jobs/Emby/EmbyAvaliabilityChecker.cs | 2 +- src/Ombi.Schedule/Jobs/Plex/PlexAvailabilityChecker.cs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Ombi.Schedule/Jobs/Emby/EmbyAvaliabilityChecker.cs b/src/Ombi.Schedule/Jobs/Emby/EmbyAvaliabilityChecker.cs index bb1595c57..901b3a4c4 100644 --- a/src/Ombi.Schedule/Jobs/Emby/EmbyAvaliabilityChecker.cs +++ b/src/Ombi.Schedule/Jobs/Emby/EmbyAvaliabilityChecker.cs @@ -170,7 +170,7 @@ namespace Ombi.Schedule.Jobs.Emby { // Let's try and match the series by name seriesEpisodes = embyEpisodes.Where(x => - x.Series.Title.Equals(child.Title, StringComparison.CurrentCultureIgnoreCase)); + x.Series.Title == child.Title); } foreach (var season in child.SeasonRequests) diff --git a/src/Ombi.Schedule/Jobs/Plex/PlexAvailabilityChecker.cs b/src/Ombi.Schedule/Jobs/Plex/PlexAvailabilityChecker.cs index 067d3803c..d1d26d6e1 100644 --- a/src/Ombi.Schedule/Jobs/Plex/PlexAvailabilityChecker.cs +++ b/src/Ombi.Schedule/Jobs/Plex/PlexAvailabilityChecker.cs @@ -105,8 +105,8 @@ namespace Ombi.Schedule.Jobs.Plex { // Let's try and match the series by name seriesEpisodes = plexEpisodes.Where(x => - x.Series.Title.Equals(child.Title, StringComparison.InvariantCultureIgnoreCase) && - x.Series.ReleaseYear.Equals(child.ParentRequest.ReleaseDate.Year.ToString(), StringComparison.InvariantCultureIgnoreCase)); + x.Series.Title == child.Title && + x.Series.ReleaseYear == child.ParentRequest.ReleaseDate.Year.ToString()); }