mirror of
https://github.com/moparisthebest/SickRage
synced 2024-12-12 19:12:26 -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:
|
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 New Issue
Block a user