1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-11-05 10:32:35 +01:00

Fix issue where searching for new movies is not possible.

This commit is contained in:
Leonardo Galli 2017-03-11 16:35:18 +01:00
parent f2218006a1
commit 06ad30397b

View File

@ -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()