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:
parent
f2218006a1
commit
06ad30397b
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user