Update EmbyEpisodeSync.cs

This commit is contained in:
Jamie 2018-12-15 01:15:30 +00:00 committed by GitHub
commit d67101cc07
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -83,7 +83,7 @@ namespace Ombi.Schedule.Jobs.Emby
{ {
processed++; processed++;
if (ep.LocationType.Equals("Virtual", StringComparison.InvariantCultureIgnoreCase)) if (ep.LocationType?.Equals("Virtual", StringComparison.InvariantCultureIgnoreCase) ?? false)
{ {
// For some reason Emby is not respecting the `IsVirtualItem` field. // For some reason Emby is not respecting the `IsVirtualItem` field.
continue; continue;
@ -154,4 +154,4 @@ namespace Ombi.Schedule.Jobs.Emby
GC.SuppressFinalize(this); GC.SuppressFinalize(this);
} }
} }
} }