1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2026-04-24 22:36:19 -04:00

Fixed: Skip Flat Extra Files (Plex Naming) on Import

Fixes #3914
This commit is contained in:
Qstick
2020-07-21 21:53:31 -04:00
committed by Mark McDowall
parent 4be626a44c
commit 6131a99497
2 changed files with 22 additions and 1 deletions
@@ -422,6 +422,24 @@ namespace NzbDrone.Core.Test.MediaFiles.DiskScanServiceTests
.Verify(v => v.GetImportDecisions(It.Is<List<string>>(l => l.Count == 2), _series, false), Times.Once());
}
[Test]
public void should_exclude_inline_extra_files()
{
GivenSeriesFolder();
GivenFiles(new List<string>
{
Path.Combine(_series.Path, "Series Title S01E01.mkv").AsOsAgnostic(),
Path.Combine(_series.Path, "Deleted Scenes-deleted.mkv").AsOsAgnostic(),
Path.Combine(_series.Path, "The World of Pandora-other.mkv").AsOsAgnostic()
});
Subject.Scan(_series);
Mocker.GetMock<IMakeImportDecision>()
.Verify(v => v.GetImportDecisions(It.Is<List<string>>(l => l.Count == 1), _series), Times.Once());
}
[Test]
public void should_exclude_osx_metadata_files()
{