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 @@ public Movie() public string FolderName() { + if (Path.IsNullOrWhiteSpace()) + { + return ""; + } + //Well what about Path = Null? return new DirectoryInfo(Path).Name; } @@ -93,7 +98,7 @@ public bool IsAvailable(int delay = 0) return true; } - return DateTime.Now >= MinimumAvailabilityDate.AddDays(delay); + return DateTime.Now >= MinimumAvailabilityDate.AddDays((double)delay); } public override string ToString()