mirror of
https://github.com/SickGear/SickGear.git
synced 2024-12-01 00:43:37 +00:00
Fixed issue with searches that contain special characters such as ()
This commit is contained in:
parent
ce9f079136
commit
aa94711788
2 changed files with 2 additions and 1 deletions
|
@ -159,6 +159,7 @@ class AllShowsListUI:
|
||||||
for curShow in allSeries:
|
for curShow in allSeries:
|
||||||
if curShow in searchResults:
|
if curShow in searchResults:
|
||||||
continue
|
continue
|
||||||
|
searchterm = re.escape(searchterm)
|
||||||
if re.search(searchterm, curShow['seriesname'], flags=re.I) and 'firstaired' in curShow:
|
if re.search(searchterm, curShow['seriesname'], flags=re.I) and 'firstaired' in curShow:
|
||||||
searchResults.append(curShow)
|
searchResults.append(curShow)
|
||||||
|
|
||||||
|
|
|
@ -31,7 +31,7 @@ from sickbeard import classes
|
||||||
class APICheck(unittest.TestCase):
|
class APICheck(unittest.TestCase):
|
||||||
|
|
||||||
lang = "en"
|
lang = "en"
|
||||||
search_term = 'american dad'
|
search_term = 'Reign (2013)'
|
||||||
|
|
||||||
results = {}
|
results = {}
|
||||||
final_results = []
|
final_results = []
|
||||||
|
|
Loading…
Reference in a new issue