Ampersand in searching replaced with and

Fixed: "&" is replaced with "and" in the Series title when searching for
episodes
pull/4/head
Mark McDowall 12 years ago
parent b577d78494
commit 9c98a764f5

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

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

Loading…
Cancel
Save