mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-21 05:53:33 -07:00
Fix: Series Titles with apostrophes when searched on NzbMatrix will now return valid results.
Each indexer can now override GetQueryTitle from IndexerBase if required for special title searching.
This commit is contained in:
parent
2a6f02be17
commit
308fd11c83
3 changed files with 32 additions and 3 deletions
|
@ -270,10 +270,22 @@ namespace NzbDrone.Core.Test
|
|||
[TestCase("hawaii five-0 (2010)", "hawaii+five+0+2010")]
|
||||
[TestCase("this& that", "this+that")]
|
||||
[TestCase("this& that", "this+that")]
|
||||
[TestCase("grey's anatomy", "grey+s+anatomy")]
|
||||
public void get_query_title(string raw, string clean)
|
||||
{
|
||||
var result = IndexerBase.GetQueryTitle(raw);
|
||||
var mock = new Mock<IndexerBase>();
|
||||
mock.CallBase = true;
|
||||
var result = mock.Object.GetQueryTitle(raw);
|
||||
result.Should().Be(clean);
|
||||
}
|
||||
|
||||
[TestCase("hawaii five-0 (2010)", "hawaii+five+0+2010")]
|
||||
[TestCase("this& that", "this+that")]
|
||||
[TestCase("this& that", "this+that")]
|
||||
[TestCase("grey's anatomy", "greys+anatomy")]
|
||||
public void get_query_title_nzbmatrix_should_replace_apostrophe_with_empty_string(string raw, string clean)
|
||||
{
|
||||
var result = Mocker.Resolve<NzbMatrix>().GetQueryTitle(raw);
|
||||
result.Should().Be(clean);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue