Fixed the issue where we were marking episodes as available with the Emby connection when they have not yet aired #2417 #2623

This commit is contained in:
TidusJar 2018-11-14 21:40:20 +00:00
commit 527bc00c09

View file

@ -82,6 +82,13 @@ namespace Ombi.Schedule.Jobs.Emby
foreach (var ep in allEpisodes.Items)
{
processed++;
if (ep.LocationType.Equals("Virtual", StringComparison.InvariantCultureIgnoreCase))
{
// For some reason Emby is not respecting the `IsVirtualItem` field.
continue;
}
// Let's make sure we have the parent request, stop those pesky forign key errors,
// Damn me having data integrity
var parent = await _repo.GetByEmbyId(ep.SeriesId);