1
0
mirror of https://github.com/Radarr/Radarr.git synced 2026-03-05 13:21:25 -05:00

Fixed: Replace diacritics in Clean Title naming tokens

This commit is contained in:
Bogdan
2025-02-27 13:04:43 +02:00
parent 5959d4e51a
commit 576d404e70
2 changed files with 3 additions and 4 deletions

View File

@@ -45,7 +45,7 @@ namespace NzbDrone.Core.Test.OrganizerTests.FileNameBuilderTests
}
[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("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")]
@@ -70,8 +70,7 @@ namespace NzbDrone.Core.Test.OrganizerTests.FileNameBuilderTests
[TestCase("Won`t Get Fooled Again", "Wont Get Fooled Again")]
[TestCase("Dont Blink", "Dont Blink")]
[TestCase("The ` Legend of Kings", "The Legend of Kings")]
// [TestCase("", "")]
[TestCase("Joker: Folie à deux", "Joker Folie a deux")]
public void should_get_expected_title_back(string title, string expected)
{
_series.Title = title;

View File

@@ -220,7 +220,7 @@ namespace NzbDrone.Core.Organizer
title = ScenifyReplaceChars.Replace(title, " ");
title = ScenifyRemoveChars.Replace(title, string.Empty);
return title;
return title.RemoveDiacritics();
}
public static string TitleThe(string title)