Fixed: Skip missing episode title check if file is already in series folder

This commit is contained in:
Mark McDowall 2020-05-30 10:09:46 -07:00
parent 6c418302f8
commit f524fcd3e4
2 changed files with 15 additions and 0 deletions

View File

@ -64,6 +64,15 @@ namespace NzbDrone.Core.Test.MediaFiles.EpisodeImport.Specifications
Subject.IsSatisfiedBy(_localEpisode, null).Accepted.Should().BeFalse();
}
[Test]
public void should_accept_when_file_is_in_series_folder()
{
_localEpisode.ExistingFile = true;
_localEpisode.Episodes.First().Title = "TBA";
Subject.IsSatisfiedBy(_localEpisode, null).Accepted.Should().BeTrue();
}
[Test]
public void should_accept_when_did_not_air_recently_but_title_is_TBA()
{

View File

@ -31,6 +31,12 @@ namespace NzbDrone.Core.MediaFiles.EpisodeImport.Specifications
public Decision IsSatisfiedBy(LocalEpisode localEpisode, DownloadClientItem downloadClientItem)
{
if (localEpisode.ExistingFile)
{
_logger.Debug("{0} is in series folder, skipping check", localEpisode.Path);
return Decision.Accept();
}
var episodeTitleRequired = _configService.EpisodeTitleRequired;
if (episodeTitleRequired == EpisodeTitleRequiredType.Never)