1
0
mirror of https://github.com/moparisthebest/SickRage synced 2024-12-12 11:02:21 -05:00

Fixed minor regex mistake in code.

This commit is contained in:
echel0n 2014-06-23 23:59:08 -07:00
parent 5c5b6f49e1
commit fcd54c93d6
2 changed files with 2 additions and 2 deletions

View File

@ -243,7 +243,7 @@ class NameParser(object):
matches.append(result)
if len(matches):
result = max(matches, key=lambda x: x.score)
result = max(sorted(matches, reverse=True), key=lambda x: x.score)
if result.show:
if self.convert and not self.naming_pattern:

View File

@ -182,7 +182,7 @@ normal_regexes = {'normal':[
(?P<season_num>\d{1,2}) # 1
(?P<ep_num>\d{2}) # 02 and separator
([. _-]+(?P<extra_info>(?!\d{3}[. _-]+)[^-]+) # Source_Quality_Etc-
(-(?P<release_gr[^- ]+([. _-]\[.*\])?p>.+))?)?$ # Group
(-(?P<release_group>[^- ]+([. _-]\[.*\])?))?)?$ # Group
'''),
]}