mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-20 21:43:33 -07:00
Post processor now deletes folders that are less than 40MB.
This commit is contained in:
parent
3dd7b3d768
commit
b3e4485d71
6 changed files with 27 additions and 11 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue