1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-11-05 02:22:31 +01:00

Fixed Episode CleanTitle token helper and keep # in title

This commit is contained in:
Mark McDowall 2014-12-21 23:50:23 -08:00
parent 71c735546e
commit 9fd90e6f99
4 changed files with 7 additions and 5 deletions

View File

@ -893,7 +893,7 @@ public void should_scenify_episode_title_when_using_period_separator()
_namingConfig.StandardEpisodeFormat = "{Episode.CleanTitle}";
Subject.BuildFileName(new List<Episode> { _episode1 }, _series, _episodeFile)
.Should().Be("Rule.23.Never.Lie.to.the.Kids");
.Should().Be("Rule.#23.Never.Lie.to.the.Kids");
}
[Test]

View File

@ -56,7 +56,7 @@ public class FileNameBuilder : IBuildFileNames
private static readonly Regex FileNameCleanupRegex = new Regex(@"([- ._])(\1)+", RegexOptions.Compiled);
private static readonly Regex TrimSeparatorsRegex = new Regex(@"[- ._]$", RegexOptions.Compiled);
private static readonly Regex ScenifyRemoveChars = new Regex(@"[^a-z0-9+\/ ]", RegexOptions.Compiled | RegexOptions.IgnoreCase);
private static readonly Regex ScenifyRemoveChars = new Regex(@"[^a-z0-9+#\/ ]", RegexOptions.Compiled | RegexOptions.IgnoreCase);
private static readonly Regex ScenifyReplaceChars = new Regex(@"[+\/]", RegexOptions.Compiled | RegexOptions.IgnoreCase);
private static readonly char[] EpisodeTitleTrimCharacters = new[] { ' ', '.', '?' };

View File

@ -60,6 +60,8 @@
.download-report-cell {
.clickable();
width : 32px;
i {
.clickable();
}

View File

@ -4,8 +4,8 @@
<li><a href="#" data-token="Episode Title">Episode Title</a></li>
<li><a href="#" data-token="Episode.Title">Episode.Title</a></li>
<li><a href="#" data-token="Episode_Title">Episode_Title</a></li>
<li><a href="#" data-token="Episode Title">Episode CleanTitle</a></li>
<li><a href="#" data-token="Episode.Title">Episode.CleanTitle</a></li>
<li><a href="#" data-token="Episode_Title">Episode_CleanTitle</a></li>
<li><a href="#" data-token="Episode CleanTitle">Episode CleanTitle</a></li>
<li><a href="#" data-token="Episode.CleanTitle">Episode.CleanTitle</a></li>
<li><a href="#" data-token="Episode_CleanTitle">Episode_CleanTitle</a></li>
</ul>
</li>