mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-27 20:44:00 +02:00
Ampersand removed from title before searching
Fixed: Remove "&" from title before searching TheTVDB
This commit is contained in:
@@ -36,6 +36,7 @@ namespace NzbDrone.Core.Test.ProviderTests
|
|||||||
[TestCase("The Simpsons")]
|
[TestCase("The Simpsons")]
|
||||||
[TestCase("Family Guy")]
|
[TestCase("Family Guy")]
|
||||||
[TestCase("South Park")]
|
[TestCase("South Park")]
|
||||||
|
[TestCase("Franklin & Bash")]
|
||||||
public void successful_search(string title)
|
public void successful_search(string title)
|
||||||
{
|
{
|
||||||
var result = tvDbProvider.SearchSeries(title);
|
var result = tvDbProvider.SearchSeries(title);
|
||||||
|
@@ -37,6 +37,12 @@ namespace NzbDrone.Core.Providers
|
|||||||
{
|
{
|
||||||
Logger.Debug("Searching TVDB for '{0}'", title);
|
Logger.Debug("Searching TVDB for '{0}'", title);
|
||||||
|
|
||||||
|
if(title.Contains(" & "))
|
||||||
|
{
|
||||||
|
Logger.Debug("Removing ampersand before searching");
|
||||||
|
title = title.Replace(" & ", " ");
|
||||||
|
}
|
||||||
|
|
||||||
var result = _handler.SearchSeries(title);
|
var result = _handler.SearchSeries(title);
|
||||||
|
|
||||||
Logger.Debug("Search for '{0}' returned {1} possible results", title, result.Count);
|
Logger.Debug("Search for '{0}' returned {1} possible results", title, result.Count);
|
||||||
|
Reference in New Issue
Block a user