Fix formatting

pull/4626/head
sephrat 3 years ago
parent ae25e41b1b
commit a96d2a7818

@ -170,7 +170,7 @@ namespace Ombi.Schedule.Jobs.Emby
if (existingTv == null) if (existingTv == null)
{ {
_logger.LogDebug("Adding new TV Show {0}", tvShow.Name); _logger.LogDebug("Adding TV Show {0}", tvShow.Name);
mediaToAdd.Add(new EmbyContent mediaToAdd.Add(new EmbyContent
{ {
TvDbId = tvShow.ProviderIds?.Tvdb, TvDbId = tvShow.ProviderIds?.Tvdb,
@ -284,12 +284,11 @@ namespace Ombi.Schedule.Jobs.Emby
else else
{ {
var movieHasChanged = false; 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}'"); _logger.LogDebug($"Updating existing movie '{movieInfo.Name}'");
MapEmbyContent(existingMovie, movieInfo, server, has4K, quality); MapEmbyContent(existingMovie, movieInfo, server, has4K, quality);
movieHasChanged = true; movieHasChanged = true;
} }
else if (!quality.Equals(existingMovie?.Quality, StringComparison.InvariantCultureIgnoreCase)) else if (!quality.Equals(existingMovie?.Quality, StringComparison.InvariantCultureIgnoreCase))
{ {
@ -303,7 +302,7 @@ namespace Ombi.Schedule.Jobs.Emby
movieHasChanged = true; movieHasChanged = true;
} }
if(movieHasChanged) if (movieHasChanged)
{ {
toUpdate.Add(existingMovie); toUpdate.Add(existingMovie);
} }

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

Loading…
Cancel
Save