mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-20 21:43:33 -07:00
Moved SampleSizeLimit to Spec
This commit is contained in:
parent
de6304e628
commit
0fbb45c175
4 changed files with 14 additions and 19 deletions
|
@ -7,6 +7,7 @@ using NzbDrone.Common.Messaging;
|
|||
using NzbDrone.Core.Configuration;
|
||||
using NzbDrone.Core.MediaFiles.Commands;
|
||||
using NzbDrone.Core.MediaFiles.EpisodeImport;
|
||||
using NzbDrone.Core.MediaFiles.EpisodeImport.Specifications;
|
||||
using NzbDrone.Core.Parser;
|
||||
using NzbDrone.Core.Tv;
|
||||
|
||||
|
@ -64,7 +65,8 @@ namespace NzbDrone.Core.MediaFiles
|
|||
{
|
||||
ProcessSubFolder(new DirectoryInfo(subfolder));
|
||||
|
||||
if (_diskProvider.GetFolderSize(subfolder) < 50.Megabytes())
|
||||
//Todo: We should make sure the file(s) are actually imported
|
||||
if (_diskProvider.GetFolderSize(subfolder) < NotSampleSpecification.SampleSizeLimit)
|
||||
{
|
||||
_diskProvider.DeleteFolder(subfolder, true);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue