mirror of
https://github.com/SickGear/SickGear.git
synced 2024-12-01 00:43:37 +00:00
Moved scene conversion routine in Name Parser to end so that it only converts the best result match and not every single one wasting time and cycles.
This commit is contained in:
parent
3e78004d36
commit
7defffb4f1
1 changed files with 5 additions and 4 deletions
|
@ -231,17 +231,18 @@ class NameParser(object):
|
|||
elif getattr(self.showObj, 'anime', None) and len(result.ab_episode_numbers):
|
||||
result.score += 1
|
||||
|
||||
if self.convert:
|
||||
result = result.convert()
|
||||
|
||||
result.score += 1
|
||||
matches.append(result)
|
||||
|
||||
if len(matches):
|
||||
result = max(matches, key=lambda x: x.score)
|
||||
|
||||
# get quality
|
||||
if result.show:
|
||||
if self.convert:
|
||||
# scene convert result
|
||||
result = result.convert()
|
||||
|
||||
# get quality
|
||||
result.quality = common.Quality.nameQuality(name, bool(result.show and result.show.is_anime))
|
||||
|
||||
return result
|
||||
|
|
Loading…
Reference in a new issue