mirror of
https://github.com/Sonarr/Sonarr
synced 2025-01-03 05:35:29 +00:00
parent
240a0339be
commit
8a558b379a
2 changed files with 10 additions and 0 deletions
|
@ -1027,6 +1027,15 @@ namespace NzbDrone.Core.Test.OrganizerTests.FileNameBuilderTests
|
||||||
.Should().Be(string.Empty);
|
.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",
|
private void GivenMediaInfoModel(string videoCodec = "h264",
|
||||||
string audioCodec = "dts",
|
string audioCodec = "dts",
|
||||||
int audioChannels = 6,
|
int audioChannels = 6,
|
||||||
|
|
|
@ -187,6 +187,7 @@ namespace NzbDrone.Core.Organizer
|
||||||
|
|
||||||
splitPattern = AddSeasonEpisodeNumberingTokens(splitPattern, tokenHandlers, episodes, namingConfig);
|
splitPattern = AddSeasonEpisodeNumberingTokens(splitPattern, tokenHandlers, episodes, namingConfig);
|
||||||
splitPattern = AddAbsoluteNumberingTokens(splitPattern, tokenHandlers, series, episodes, namingConfig);
|
splitPattern = AddAbsoluteNumberingTokens(splitPattern, tokenHandlers, series, episodes, namingConfig);
|
||||||
|
splitPattern = splitPattern.Replace("...", "{{ellipsis}}");
|
||||||
|
|
||||||
UpdateMediaInfoIfNeeded(splitPattern, episodeFile, series);
|
UpdateMediaInfoIfNeeded(splitPattern, episodeFile, series);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue