Fixed: Skip missing episode title check if file is already in series folder
This commit is contained in:
parent
6c418302f8
commit
f524fcd3e4
|
@ -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()
|
||||
{
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue