mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-16 02:02:55 -07:00
FIXED PLEX!!!!!
This commit is contained in:
parent
3f6bd63f03
commit
924e7c89f3
1 changed files with 12 additions and 1 deletions
|
@ -120,12 +120,23 @@ namespace Ombi.Schedule.Jobs.Plex
|
|||
PlexContentId = show.ratingKey
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
// Do we already have this item?
|
||||
// Let's try and match
|
||||
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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue