From 9c98a764f5055b4809fff76f3fc438ebc0fb3481 Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Thu, 20 Dec 2012 08:31:05 -0800 Subject: [PATCH] Ampersand in searching replaced with and Fixed: "&" is replaced with "and" in the Series title when searching for episodes --- NzbDrone.Core.Test/NzbDrone.Core.Test.csproj | 1 + NzbDrone.Core/Providers/SearchProvider.cs | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/NzbDrone.Core.Test/NzbDrone.Core.Test.csproj b/NzbDrone.Core.Test/NzbDrone.Core.Test.csproj index e9f2fe1a7..7c4d44a22 100644 --- a/NzbDrone.Core.Test/NzbDrone.Core.Test.csproj +++ b/NzbDrone.Core.Test/NzbDrone.Core.Test.csproj @@ -139,6 +139,7 @@ + diff --git a/NzbDrone.Core/Providers/SearchProvider.cs b/NzbDrone.Core/Providers/SearchProvider.cs index 63d263d0c..5c611ff56 100644 --- a/NzbDrone.Core/Providers/SearchProvider.cs +++ b/NzbDrone.Core/Providers/SearchProvider.cs @@ -570,8 +570,11 @@ public string GetSeriesTitle(Series series) { var title = _sceneMappingProvider.GetSceneName(series.SeriesId); - if (String.IsNullOrWhiteSpace(title)) + if(String.IsNullOrWhiteSpace(title)) + { title = series.Title; + title = title.Replace("&", "and"); + } return title; }