mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-06 04:52:21 -07:00
Fixed: Replace diacritics in Clean Title naming tokens
This commit is contained in:
parent
a2201001c5
commit
9fc549b43b
2 changed files with 3 additions and 2 deletions
|
@ -64,7 +64,7 @@ namespace NzbDrone.Core.Test.OrganizerTests.FileNameBuilderTests
|
||||||
}
|
}
|
||||||
|
|
||||||
[TestCase("Florence + the Machine", "Florence + the Machine")]
|
[TestCase("Florence + the Machine", "Florence + the Machine")]
|
||||||
[TestCase("Beyoncé X10", "Beyoncé X10")]
|
[TestCase("Beyoncé X10", "Beyonce X10")]
|
||||||
[TestCase("Girlfriends' Guide to Divorce", "Girlfriends Guide to Divorce")]
|
[TestCase("Girlfriends' Guide to Divorce", "Girlfriends Guide to Divorce")]
|
||||||
[TestCase("Rule #23: Never Lie to the Kids", "Rule #23 Never Lie to the Kids")]
|
[TestCase("Rule #23: Never Lie to the Kids", "Rule #23 Never Lie to the Kids")]
|
||||||
[TestCase("Anne Hathaway/Florence + The Machine", "Anne Hathaway Florence + The Machine")]
|
[TestCase("Anne Hathaway/Florence + The Machine", "Anne Hathaway Florence + The Machine")]
|
||||||
|
@ -81,6 +81,7 @@ namespace NzbDrone.Core.Test.OrganizerTests.FileNameBuilderTests
|
||||||
[TestCase("[a] title", "a title")]
|
[TestCase("[a] title", "a title")]
|
||||||
[TestCase("backslash \\ backlash", "backslash backlash")]
|
[TestCase("backslash \\ backlash", "backslash backlash")]
|
||||||
[TestCase("I'm the Boss", "Im the Boss")]
|
[TestCase("I'm the Boss", "Im the Boss")]
|
||||||
|
[TestCase("Joker: Folie à deux", "Joker Folie a deux")]
|
||||||
public void should_get_expected_title_back(string name, string expected)
|
public void should_get_expected_title_back(string name, string expected)
|
||||||
{
|
{
|
||||||
_artist.Name = name;
|
_artist.Name = name;
|
||||||
|
|
|
@ -258,7 +258,7 @@ namespace NzbDrone.Core.Organizer
|
||||||
title = ScenifyReplaceChars.Replace(title, " ");
|
title = ScenifyReplaceChars.Replace(title, " ");
|
||||||
title = ScenifyRemoveChars.Replace(title, string.Empty);
|
title = ScenifyRemoveChars.Replace(title, string.Empty);
|
||||||
|
|
||||||
return title;
|
return title.RemoveDiacritics();
|
||||||
}
|
}
|
||||||
|
|
||||||
public static string TitleThe(string title)
|
public static string TitleThe(string title)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue