mirror of
https://github.com/moparisthebest/SickRage
synced 2024-12-12 11:02:21 -05:00
Fixed issue with searches that contain special characters such as ()
This commit is contained in:
parent
ce9f079136
commit
aa94711788
@ -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)
|
||||
|
||||
|
@ -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 = []
|
||||
|
Loading…
Reference in New Issue
Block a user