mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-20 21:33:15 -07:00
Fixed the issue where we have got an episode but not the related series. #1620
This commit is contained in:
parent
80ea579292
commit
7e4de5cbd7
1 changed files with 9 additions and 0 deletions
|
@ -89,6 +89,15 @@ namespace Ombi.Schedule.Jobs.Emby
|
||||||
continue;
|
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(epInfo.SeriesId);
|
||||||
|
if (parent == null)
|
||||||
|
{
|
||||||
|
_logger.LogInformation("The episode {0} does not relate to a series, so we cannot save this", ep.Name);
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
var existingEpisode = await _repo.GetByEmbyId(ep.Id);
|
var existingEpisode = await _repo.GetByEmbyId(ep.Id);
|
||||||
if (existingEpisode == null)
|
if (existingEpisode == null)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue