|
|
@ -92,8 +92,12 @@ namespace PlexRequests.Services.Jobs
|
|
|
|
{
|
|
|
|
{
|
|
|
|
var movies = Cache.Get<CouchPotatoMovies>(CacheKeys.CouchPotatoQueued);
|
|
|
|
var movies = Cache.Get<CouchPotatoMovies>(CacheKeys.CouchPotatoQueued);
|
|
|
|
|
|
|
|
|
|
|
|
var items = movies?.movies?.Select(x => x.info?.tmdb_id).Cast<int>().ToArray();
|
|
|
|
var items = movies?.movies?.Select(x => x.info?.tmdb_id);
|
|
|
|
return items ?? new int[] { };
|
|
|
|
if(items != null)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
return items.Cast<int>().ToArray();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
return new int[] { };
|
|
|
|
}
|
|
|
|
}
|
|
|
|
catch (Exception e)
|
|
|
|
catch (Exception e)
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -107,4 +111,4 @@ namespace PlexRequests.Services.Jobs
|
|
|
|
Queued();
|
|
|
|
Queued();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|