|
|
|
@ -192,5 +192,19 @@ namespace NzbDrone.Core.Test.MediaFiles.EpisodeImport.Specifications
|
|
|
|
|
|
|
|
|
|
Subject.IsSatisfiedBy(localEpisode, null).Accepted.Should().BeTrue();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[Test]
|
|
|
|
|
public void should_be_accepted_if_file_has_absolute_episode_number_and_folder_uses_standard()
|
|
|
|
|
{
|
|
|
|
|
_localEpisode.FileEpisodeInfo.SeasonNumber = 0;
|
|
|
|
|
_localEpisode.FileEpisodeInfo.AbsoluteEpisodeNumbers = new[] { 1 };
|
|
|
|
|
|
|
|
|
|
_localEpisode.FolderEpisodeInfo.SeasonNumber = 1;
|
|
|
|
|
_localEpisode.FolderEpisodeInfo.EpisodeNumbers = new[] { 1, 2 };
|
|
|
|
|
|
|
|
|
|
_localEpisode.Path = @"C:\Test\Unsorted\Series.Title.S01.720p.HDTV-Sonarr\S02E01.mkv".AsOsAgnostic();
|
|
|
|
|
|
|
|
|
|
Subject.IsSatisfiedBy(_localEpisode, null).Accepted.Should().BeTrue();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|