1
0
Fork 0
mirror of https://github.com/Sonarr/Sonarr synced 2024-12-27 02:07:41 +00: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 @@ namespace NzbDrone.Core.Test.OrganizerTests
_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 @@ namespace NzbDrone.Core.Organizer
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>