diff --git a/sickbeard/classes.py b/sickbeard/classes.py index a34ce0d3..2ec2f335 100644 --- a/sickbeard/classes.py +++ b/sickbeard/classes.py @@ -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) diff --git a/tests/tests.py b/tests/tests.py index ff516715..48faf86b 100644 --- a/tests/tests.py +++ b/tests/tests.py @@ -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 = []