mirror of
https://github.com/Sonarr/Sonarr
synced 2024-12-27 18:28:19 +00:00
ImportingNewDownload wasn't importing small files that weren't samples like it should.
This commit is contained in:
parent
54e7092e2d
commit
5179bce37e
1 changed files with 1 additions and 3 deletions
|
@ -228,14 +228,12 @@ namespace NzbDrone.Core.Providers
|
|||
var result = new List<EpisodeFile>();
|
||||
|
||||
//Get all the files except those that are considered samples
|
||||
var files = GetMediaFileList(path).Where(f => _diskProvider.GetSize(f) > 40000000 && !f.ToLower().Contains("sample")).ToList();
|
||||
var files = GetMediaFileList(path).Where(f => _diskProvider.GetSize(f) > 40000000 || !f.ToLower().Contains("sample")).ToList();
|
||||
|
||||
foreach (var file in files)
|
||||
{
|
||||
try
|
||||
{
|
||||
|
||||
|
||||
//Parse the filename
|
||||
var parseResult = Parser.ParseEpisodeInfo(Path.GetFileName(file));
|
||||
parseResult.Series = series;
|
||||
|
|
Loading…
Reference in a new issue