mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-14 02:26:55 -07:00
Update CouchPotatoCacher.cs
This commit is contained in:
parent
b97e8d5cf7
commit
129c218c9e
1 changed files with 7 additions and 3 deletions
|
@ -92,8 +92,12 @@ namespace PlexRequests.Services.Jobs
|
|||
{
|
||||
var movies = Cache.Get<CouchPotatoMovies>(CacheKeys.CouchPotatoQueued);
|
||||
|
||||
var items = movies?.movies?.Select(x => x.info?.tmdb_id).Cast<int>().ToArray();
|
||||
return items ?? new int[] { };
|
||||
var items = movies?.movies?.Select(x => x.info?.tmdb_id);
|
||||
if(items != null)
|
||||
{
|
||||
return items.Cast<int>().ToArray();
|
||||
}
|
||||
return new int[] { };
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
|
@ -107,4 +111,4 @@ namespace PlexRequests.Services.Jobs
|
|||
Queued();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue