mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-27 12:33:00 +02:00
Free space check should use series' parent directory
This commit is contained in:
@@ -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())
|
||||
{
|
||||
|
Reference in New Issue
Block a user