mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-14 02:26:55 -07:00
Fixed a null reference issue in the Plex Content Cacher
This commit is contained in:
parent
f5ffa78304
commit
4fc50bb40b
1 changed files with 2 additions and 1 deletions
|
@ -94,6 +94,7 @@ namespace Ombi.Schedule.Jobs.Plex
|
|||
|
||||
Logger.LogInformation("Getting all content from server {0}", servers.Name);
|
||||
var allContent = GetAllContent(servers);
|
||||
Logger.LogInformation("We found {0} items", allContent.Count);
|
||||
|
||||
// Let's now process this.
|
||||
var contentToAdd = new List<PlexContent>();
|
||||
|
@ -103,7 +104,7 @@ namespace Ombi.Schedule.Jobs.Plex
|
|||
{
|
||||
// Process Shows
|
||||
Logger.LogInformation("Processing TV Shows");
|
||||
foreach (var show in content.Metadata)
|
||||
foreach (var show in content.Metadata ?? new Metadata[]{})
|
||||
{
|
||||
var seasonList = await PlexApi.GetSeasons(servers.PlexAuthToken, servers.FullUri,
|
||||
show.ratingKey);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue