mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-23 06:45:19 -07:00
Fix error with null dates
This commit is contained in:
parent
83560ad937
commit
e0f72e4853
1 changed files with 8 additions and 8 deletions
|
@ -142,7 +142,6 @@ namespace NzbDrone.Core.MetadataSource.SkyHook
|
|||
if (resource.release_date.IsNotNullOrWhiteSpace())
|
||||
{
|
||||
movie.InCinemas = DateTime.Parse(resource.release_date);
|
||||
}
|
||||
|
||||
// get the lowest year in all release date
|
||||
var lowestYear = new List<int>();
|
||||
|
@ -154,6 +153,7 @@ namespace NzbDrone.Core.MetadataSource.SkyHook
|
|||
}
|
||||
}
|
||||
movie.Year = lowestYear.Min();
|
||||
}
|
||||
|
||||
movie.TitleSlug += "-" + movie.TmdbId.ToString();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue