Free space check should use series' parent directory

This commit is contained in:
Mark McDowall
2013-08-12 08:29:01 -07:00
parent f23c7e94ff
commit 4ea35ae626
2 changed files with 18 additions and 2 deletions

View File

@@ -21,8 +21,9 @@ namespace NzbDrone.Core.MediaFiles.EpisodeImport.Specifications
public string RejectionReason { get { return "Not enough free space"; } }
public bool IsSatisfiedBy(LocalEpisode localEpisode)
{
var freeSpace = _diskProvider.GetAvilableSpace(localEpisode.Series.Path);
{
var path = Directory.GetParent(localEpisode.Series.Path);
var freeSpace = _diskProvider.GetAvilableSpace(path.FullName);
if (freeSpace < localEpisode.Size + 100.Megabytes())
{