From 8cd556e268931596b9c1d1ae0ce533bfaaf330f4 Mon Sep 17 00:00:00 2001 From: tidusjar Date: Fri, 6 Jan 2023 12:20:48 +0000 Subject: [PATCH] fix(plex-watchlist): Index out of bounds error --- src/Ombi.Schedule/Jobs/Plex/PlexWatchlistImport.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Ombi.Schedule/Jobs/Plex/PlexWatchlistImport.cs b/src/Ombi.Schedule/Jobs/Plex/PlexWatchlistImport.cs index 4b7ea96aa..85a926376 100644 --- a/src/Ombi.Schedule/Jobs/Plex/PlexWatchlistImport.cs +++ b/src/Ombi.Schedule/Jobs/Plex/PlexWatchlistImport.cs @@ -164,7 +164,7 @@ namespace Ombi.Schedule.Jobs.Plex if (!string.IsNullOrEmpty(providerId.TheTvDb)) { result = await _movieDbApi.Find(providerId.TheTvDb, ExternalSource.tvdb_id); - hasResult = result?.tv_results?.Length > 0; + hasResult = movie ? result?.movie_results?.Length > 0 : result?.tv_results?.Length > 0; } if (!string.IsNullOrEmpty(providerId.ImdbId) && !hasResult) {