|
|
|
@ -126,6 +126,17 @@ namespace Ombi.Schedule.Jobs.Plex
|
|
|
|
|
var existingContent = await Repo.GetFirstContentByCustom(x => x.Title == show.title
|
|
|
|
|
&& x.ReleaseYear == show.year.ToString()
|
|
|
|
|
&& x.Type == PlexMediaTypeEntity.Show);
|
|
|
|
|
|
|
|
|
|
if (existingContent == null)
|
|
|
|
|
{
|
|
|
|
|
// Just check the key
|
|
|
|
|
var hasSameKey = await Repo.GetByKey(show.ratingKey);
|
|
|
|
|
if (hasSameKey != null)
|
|
|
|
|
{
|
|
|
|
|
existingContent = hasSameKey;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
// The ratingKey keeps changing...
|
|
|
|
|
//var existingContent = await Repo.GetByKey(show.ratingKey);
|
|
|
|
|
if (existingContent != null)
|
|
|
|
|