Ampersand in searching replaced with and

Fixed: "&" is replaced with "and" in the Series title when searching for
episodes
This commit is contained in:
Mark McDowall 2012-12-20 08:31:05 -08:00
parent b577d78494
commit 9c98a764f5
2 changed files with 5 additions and 1 deletions

View File

@ -139,6 +139,7 @@
</Reference>
</ItemGroup>
<ItemGroup>
<Compile Include="ProviderTests\SearchProviderTests\GetSeriesTitleFixture.cs" />
<Compile Include="ProviderTests\TvRageMappingProviderTests\FindMatchingTvRageSeriesFixture.cs" />
<Compile Include="ProviderTests\TvRageMappingProviderTests\ProcessResultsFixture.cs" />
<Compile Include="ProviderTests\TvRageProviderTests\GetSeriesFixture.cs" />

View File

@ -570,8 +570,11 @@ namespace NzbDrone.Core.Providers
{
var title = _sceneMappingProvider.GetSceneName(series.SeriesId);
if (String.IsNullOrWhiteSpace(title))
if(String.IsNullOrWhiteSpace(title))
{
title = series.Title;
title = title.Replace("&", "and");
}
return title;
}