mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-20 21:33:15 -07:00
Potential fix for #350
This commit is contained in:
parent
818c2e80f7
commit
752915ea0a
1 changed files with 6 additions and 1 deletions
|
@ -87,7 +87,12 @@ namespace PlexRequests.Services.Jobs
|
||||||
public int[] QueuedIds()
|
public int[] QueuedIds()
|
||||||
{
|
{
|
||||||
var movies = Cache.Get<CouchPotatoMovies>(CacheKeys.CouchPotatoQueued);
|
var movies = Cache.Get<CouchPotatoMovies>(CacheKeys.CouchPotatoQueued);
|
||||||
return movies?.movies?.Select(x => x.info.tmdb_id).ToArray() ?? new int[] { };
|
var items = movies?.movies?.Select(x => x.info?.tmdb_id).Cast<int>().ToArray();
|
||||||
|
if (items == null)
|
||||||
|
{
|
||||||
|
return new int[] { };
|
||||||
|
}
|
||||||
|
return items;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void Execute(IJobExecutionContext context)
|
public void Execute(IJobExecutionContext context)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue