diff --git a/PlexRequests.Services/Jobs/CouchPotatoCacher.cs b/PlexRequests.Services/Jobs/CouchPotatoCacher.cs index be36d004f..5ad3d99d8 100644 --- a/PlexRequests.Services/Jobs/CouchPotatoCacher.cs +++ b/PlexRequests.Services/Jobs/CouchPotatoCacher.cs @@ -92,8 +92,12 @@ namespace PlexRequests.Services.Jobs { var movies = Cache.Get(CacheKeys.CouchPotatoQueued); - var items = movies?.movies?.Select(x => x.info?.tmdb_id).Cast().ToArray(); - return items ?? new int[] { }; + var items = movies?.movies?.Select(x => x.info?.tmdb_id); + if(items != null) + { + return items.Cast().ToArray(); + } + return new int[] { }; } catch (Exception e) { @@ -107,4 +111,4 @@ namespace PlexRequests.Services.Jobs Queued(); } } -} \ No newline at end of file +}