|
|
|
@ -145,7 +145,7 @@ namespace Ombi.Schedule.Jobs.Jellyfin
|
|
|
|
|
|
|
|
|
|
if (existingTv == null)
|
|
|
|
|
{
|
|
|
|
|
_logger.LogDebug("Adding new TV Show {0}", tvShow.Name);
|
|
|
|
|
_logger.LogDebug("Adding TV Show {0}", tvShow.Name);
|
|
|
|
|
mediaToAdd.Add(new JellyfinContent
|
|
|
|
|
{
|
|
|
|
|
TvDbId = tvShow.ProviderIds?.Tvdb,
|
|
|
|
@ -249,12 +249,11 @@ namespace Ombi.Schedule.Jobs.Jellyfin
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
var movieHasChanged = false;
|
|
|
|
|
if(existingMovie.ImdbId != movieInfo.ProviderIds.Imdb || existingMovie.TheMovieDbId != movieInfo.ProviderIds.Tmdb)
|
|
|
|
|
if (existingMovie.ImdbId != movieInfo.ProviderIds.Imdb || existingMovie.TheMovieDbId != movieInfo.ProviderIds.Tmdb)
|
|
|
|
|
{
|
|
|
|
|
_logger.LogDebug($"Updating existing movie '{movieInfo.Name}'");
|
|
|
|
|
MapJellyfinMovie(existingMovie, movieInfo, server, has4K, quality);
|
|
|
|
|
movieHasChanged = true;
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
else if (!quality.Equals(existingMovie?.Quality, StringComparison.InvariantCultureIgnoreCase))
|
|
|
|
|
{
|
|
|
|
@ -269,7 +268,7 @@ namespace Ombi.Schedule.Jobs.Jellyfin
|
|
|
|
|
movieHasChanged = true;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if(movieHasChanged)
|
|
|
|
|
if (movieHasChanged)
|
|
|
|
|
{
|
|
|
|
|
toUpdate.Add(existingMovie);
|
|
|
|
|
}
|
|
|
|
|