mirror of
https://github.com/Sonarr/Sonarr.git
synced 2024-12-14 11:23:42 +02:00
Ampersand in searching replaced with and
Fixed: "&" is replaced with "and" in the Series title when searching for episodes
This commit is contained in:
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 @@ public string GetSeriesTitle(Series series)
|
|||||||
{
|
{
|
||||||
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…
Reference in New Issue
Block a user