diff --git a/PlexRequests.Services/Jobs/PlexAvailabilityChecker.cs b/PlexRequests.Services/Jobs/PlexAvailabilityChecker.cs index a8fe6f095..a35fbb11d 100644 --- a/PlexRequests.Services/Jobs/PlexAvailabilityChecker.cs +++ b/PlexRequests.Services/Jobs/PlexAvailabilityChecker.cs @@ -242,6 +242,10 @@ namespace PlexRequests.Services.Jobs public bool IsEpisodeAvailable(string theTvDbId, int season, int episode) { var episodes = Cache.Get>(CacheKeys.PlexEpisodes); + if (episodes == null) + { + return false; + } foreach (var result in episodes) { if (result.Episodes.ProviderId.Equals(theTvDbId) && result.Episodes.EpisodeNumber == episode && result.Episodes.SeasonNumber == season) diff --git a/PlexRequests.UI/Views/Search/Index.cshtml b/PlexRequests.UI/Views/Search/Index.cshtml index 5da08daf6..2778ad289 100644 --- a/PlexRequests.UI/Views/Search/Index.cshtml +++ b/PlexRequests.UI/Views/Search/Index.cshtml @@ -351,10 +351,8 @@