1
0
Fork 0
mirror of https://github.com/Sonarr/Sonarr synced 2025-01-03 05:35:29 +00:00

New: Maintain '...' in naming format

Closes #7290
This commit is contained in:
Mark McDowall 2024-10-12 16:14:22 -07:00 committed by Mark McDowall
parent 240a0339be
commit 8a558b379a
2 changed files with 10 additions and 0 deletions

View file

@ -1027,6 +1027,15 @@ namespace NzbDrone.Core.Test.OrganizerTests.FileNameBuilderTests
.Should().Be(string.Empty);
}
[Test]
public void should_maintain_ellipsis_in_naming_format()
{
_namingConfig.StandardEpisodeFormat = "{Series.Title}.S{season:00}.E{episode:00}...{Episode.CleanTitle}";
Subject.BuildFileName(new List<Episode> { _episode1 }, _series, _episodeFile)
.Should().Be("South.Park.S15.E06...City.Sushi");
}
private void GivenMediaInfoModel(string videoCodec = "h264",
string audioCodec = "dts",
int audioChannels = 6,

View file

@ -187,6 +187,7 @@ namespace NzbDrone.Core.Organizer
splitPattern = AddSeasonEpisodeNumberingTokens(splitPattern, tokenHandlers, episodes, namingConfig);
splitPattern = AddAbsoluteNumberingTokens(splitPattern, tokenHandlers, series, episodes, namingConfig);
splitPattern = splitPattern.Replace("...", "{{ellipsis}}");
UpdateMediaInfoIfNeeded(splitPattern, episodeFile, series);