mirror of
https://github.com/Sonarr/Sonarr
synced 2025-03-04 02:28:21 +00:00
parent
d09e7893b3
commit
156d306334
2 changed files with 3 additions and 4 deletions
|
@ -53,7 +53,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")]
|
||||||
|
@ -80,8 +80,7 @@ namespace NzbDrone.Core.Test.OrganizerTests.FileNameBuilderTests
|
||||||
[TestCase("Won`t Get Fooled Again", "Wont Get Fooled Again")]
|
[TestCase("Won`t Get Fooled Again", "Wont Get Fooled Again")]
|
||||||
[TestCase("Don’t Blink", "Dont Blink")]
|
[TestCase("Don’t Blink", "Dont Blink")]
|
||||||
[TestCase("The ` Legend of Kings", "The Legend of Kings")]
|
[TestCase("The ` Legend of Kings", "The Legend of Kings")]
|
||||||
|
[TestCase("Joker: Folie à deux", "Joker Folie a deux")]
|
||||||
// [TestCase("", "")]
|
|
||||||
public void should_get_expected_title_back(string title, string expected)
|
public void should_get_expected_title_back(string title, string expected)
|
||||||
{
|
{
|
||||||
_series.Title = title;
|
_series.Title = title;
|
||||||
|
|
|
@ -305,7 +305,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
Reference in a new issue