From 06ad30397b886b5f348785553f6de6afa1e5e796 Mon Sep 17 00:00:00 2001 From: Leonardo Galli Date: Sat, 11 Mar 2017 16:35:18 +0100 Subject: [PATCH] Fix issue where searching for new movies is not possible. --- src/NzbDrone.Core/Tv/Movie.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/NzbDrone.Core/Tv/Movie.cs b/src/NzbDrone.Core/Tv/Movie.cs index d1fc2f31f..8d22d00b9 100644 --- a/src/NzbDrone.Core/Tv/Movie.cs +++ b/src/NzbDrone.Core/Tv/Movie.cs @@ -58,6 +58,11 @@ namespace NzbDrone.Core.Tv public string FolderName() { + if (Path.IsNullOrWhiteSpace()) + { + return ""; + } + //Well what about Path = Null? return new DirectoryInfo(Path).Name; } @@ -93,7 +98,7 @@ namespace NzbDrone.Core.Tv return true; } - return DateTime.Now >= MinimumAvailabilityDate.AddDays(delay); + return DateTime.Now >= MinimumAvailabilityDate.AddDays((double)delay); } public override string ToString()