mirror of
https://github.com/Sonarr/Sonarr.git
synced 2026-04-17 21:26:13 -04:00
Fixed: Don't reject import with missing episode title if renaming is off
This commit is contained in:
@@ -46,6 +46,13 @@ namespace NzbDrone.Core.Test.OrganizerTests.FileNameBuilderTests
|
||||
Subject.RequiresEpisodeTitle(_series, new List<Episode> { _episode }).Should().BeFalse();
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void should_return_false_if_renaming_episodes_is_off()
|
||||
{
|
||||
_namingConfig.RenameEpisodes = false;
|
||||
Subject.RequiresEpisodeTitle(_series, new List<Episode> { _episode }).Should().BeFalse();
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void should_return_true_when_episode_title_is_part_of_the_pattern()
|
||||
{
|
||||
|
||||
@@ -332,6 +332,11 @@ namespace NzbDrone.Core.Organizer
|
||||
var namingConfig = _namingConfigService.GetConfig();
|
||||
var pattern = namingConfig.StandardEpisodeFormat;
|
||||
|
||||
if (!namingConfig.RenameEpisodes)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
if (series.SeriesType == SeriesTypes.Daily)
|
||||
{
|
||||
pattern = namingConfig.DailyEpisodeFormat;
|
||||
|
||||
Reference in New Issue
Block a user