1
0
mirror of https://github.com/Radarr/Radarr.git synced 2026-04-26 22:46:53 -04:00

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

Fixes #4630
This commit is contained in:
Qstick
2020-07-21 21:53:31 -04:00
parent c84a9d6612
commit b6c75e7e1b
2 changed files with 22 additions and 1 deletions
@@ -382,6 +382,24 @@ namespace NzbDrone.Core.Test.MediaFiles.DiskScanServiceTests
.Verify(v => v.GetImportDecisions(It.Is<List<string>>(l => l.Count == 2), _movie), Times.Once());
}
[Test]
public void should_exclude_inline_extra_files()
{
GivenMovieFolder();
GivenFiles(new List<string>
{
Path.Combine(_movie.Path, "Avatar (2009).mkv").AsOsAgnostic(),
Path.Combine(_movie.Path, "Deleted Scenes-deleted.mkv").AsOsAgnostic(),
Path.Combine(_movie.Path, "The World of Pandora-other.mkv").AsOsAgnostic()
});
Subject.Scan(_movie);
Mocker.GetMock<IMakeImportDecision>()
.Verify(v => v.GetImportDecisions(It.Is<List<string>>(l => l.Count == 1), _movie), Times.Once());
}
[Test]
public void should_exclude_osx_metadata_files()
{