From d7fd48ef25503a15b2d6b9ce2f21d34f34b52923 Mon Sep 17 00:00:00 2001 From: Qstick Date: Mon, 24 Feb 2020 23:02:39 -0500 Subject: [PATCH] Fixed: Use TMDB ReleaseDate Year for Year (Match Cinema Date) --- .../MetadataSource/SkyHook/SkyHookProxy.cs | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/src/NzbDrone.Core/MetadataSource/SkyHook/SkyHookProxy.cs b/src/NzbDrone.Core/MetadataSource/SkyHook/SkyHookProxy.cs index 52d1d6349..9707c9237 100644 --- a/src/NzbDrone.Core/MetadataSource/SkyHook/SkyHookProxy.cs +++ b/src/NzbDrone.Core/MetadataSource/SkyHook/SkyHookProxy.cs @@ -176,17 +176,7 @@ namespace NzbDrone.Core.MetadataSource.SkyHook { movie.InCinemas = DateTime.Parse(resource.release_date); - // get the lowest year in all release date - var lowestYear = new List(); - foreach (ReleaseDates releaseDates in resource.release_dates.results) - { - foreach (ReleaseDate releaseDate in releaseDates.release_dates) - { - lowestYear.Add(DateTime.Parse(releaseDate.release_date).Year); - } - } - - movie.Year = lowestYear.Min(); + movie.Year = movie.InCinemas.Value.Year; } movie.TitleSlug += "-" + movie.TmdbId.ToString();