Fixed issue with searches that contain special characters such as ()

This commit is contained in:
echel0n 2014-04-25 12:36:42 -07:00
parent ce9f079136
commit aa94711788
2 changed files with 2 additions and 1 deletions

View file

@ -159,6 +159,7 @@ class AllShowsListUI:
for curShow in allSeries:
if curShow in searchResults:
continue
searchterm = re.escape(searchterm)
if re.search(searchterm, curShow['seriesname'], flags=re.I) and 'firstaired' in curShow:
searchResults.append(curShow)

View file

@ -31,7 +31,7 @@ from sickbeard import classes
class APICheck(unittest.TestCase):
lang = "en"
search_term = 'american dad'
search_term = 'Reign (2013)'
results = {}
final_results = []