Post processor now deletes folders that are less than 40MB.

This commit is contained in:
kay.one 2011-10-24 22:15:20 -07:00
commit b3e4485d71
6 changed files with 27 additions and 11 deletions

View file

@ -104,7 +104,7 @@ namespace NzbDrone.Core.Providers
long size = _diskProvider.GetSize(filePath);
//If Size is less than 40MB and contains sample. Check for Size to ensure its not an episode with sample in the title
if (size < 40.Megabytes() && filePath.ToLower().Contains("sample"))
if (size < Constants.IgnoreFileSize && filePath.ToLower().Contains("sample"))
{
Logger.Trace("[{0}] appears to be a sample. skipping.", filePath);
return null;