Skipping free space check when importing existing episodes

This commit is contained in:
Mark McDowall
2013-09-13 11:41:21 -07:00
parent 6850d77dd2
commit 89d603d71c
2 changed files with 22 additions and 4 deletions

View File

@@ -23,6 +23,12 @@ namespace NzbDrone.Core.MediaFiles.EpisodeImport.Specifications
{
try
{
if (_diskProvider.IsParent(localEpisode.Series.Path, localEpisode.Path))
{
_logger.Trace("Skipping free space check for existing episode");
return true;
}
var path = Directory.GetParent(localEpisode.Series.Path);
var freeSpace = _diskProvider.GetAvailableSpace(path.FullName);