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:
parent
5c5b6f49e1
commit
fcd54c93d6
@ -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:
|
||||
|
@ -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
|
||||
'''),
|
||||
]}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user