mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-14 02:37:08 -07:00
New: Import will skip any video file under 40MB
This commit is contained in:
parent
ba0217274b
commit
cbdbc9a01b
2 changed files with 22 additions and 2 deletions
|
@ -110,8 +110,8 @@ 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 < Constants.IgnoreFileSize && filePath.ToLower().Contains("sample"))
|
||||
//Skip any file under 40MB - New samples don't even have sample in the name...
|
||||
if (size < Constants.IgnoreFileSize)
|
||||
{
|
||||
Logger.Trace("[{0}] appears to be a sample. skipping.", filePath);
|
||||
return null;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue