switch from '#' to '_'. Stop cleaning seriestitle first

This commit is contained in:
Stevie Robinson 2023-10-01 00:09:47 +02:00
parent 5871189891
commit 7005f831eb
2 changed files with 3 additions and 5 deletions

View File

@ -36,7 +36,8 @@ namespace NzbDrone.Core.Test.OrganizerTests.FileNameBuilderTests
[TestCase("The Mist", "M\\The Mist")] [TestCase("The Mist", "M\\The Mist")]
[TestCase("A", "A\\A")] [TestCase("A", "A\\A")]
[TestCase("30 Rock", "3\\30 Rock")] [TestCase("30 Rock", "3\\30 Rock")]
[TestCase("The '80s Greatest", "#\\The '80s Greatest")] [TestCase("The '80s Greatest", "_\\The '80s Greatest")]
[TestCase("좀비버스", "좀\\좀비버스")]
public void should_get_expected_folder_name_back(string title, string expected) public void should_get_expected_folder_name_back(string title, string expected)
{ {

View File

@ -379,15 +379,12 @@ namespace NzbDrone.Core.Organizer
public static string TitleFirstCharacter(string title) public static string TitleFirstCharacter(string title)
{ {
title = ScenifyReplaceChars.Replace(title, " ");
title = ScenifyRemoveChars.Replace(title, string.Empty);
if (char.IsLetterOrDigit(title[0])) if (char.IsLetterOrDigit(title[0]))
{ {
return title.Substring(0, 1).FirstCharToUpper(); return title.Substring(0, 1).FirstCharToUpper();
} }
return "#"; return "_";
} }
public static string CleanFileName(string name) public static string CleanFileName(string name)