mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-14 10:36:54 -07:00
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:
parent
3de88be16c
commit
527bc00c09
1 changed files with 7 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue