mirror of
https://github.com/SickGear/SickGear.git
synced 2024-12-01 00:43:37 +00:00
Fix for nonetype issues during parsing
This commit is contained in:
parent
24dfbc3f15
commit
a9f142184a
1 changed files with 3 additions and 3 deletions
|
@ -235,9 +235,9 @@ class NameParser(object):
|
|||
if len(matches):
|
||||
result = max(matches, key=lambda x: x.score)
|
||||
|
||||
# get quality
|
||||
if result.show:
|
||||
result.quality = common.Quality.nameQuality(name, bool(result.show and result.show.is_anime))
|
||||
# get quality
|
||||
if result.show:
|
||||
result.quality = common.Quality.nameQuality(name, bool(result.show and result.show.is_anime))
|
||||
|
||||
return result
|
||||
|
||||
|
|
Loading…
Reference in a new issue