Browse Source

Fix nameparser unit tests.

tags/release_0.24.8^2
Prinz23 4 years ago
committed by JackDandy
parent
commit
bfc2c26026
  1. 7
      CHANGES.md
  2. 2
      sickbeard/name_parser/parser.py

7
CHANGES.md

@ -1,4 +1,9 @@
### 0.24.7 (2021-06-30 22:10:00 UTC)
### 0.24.8 (2021-06-30 23:05:00 UTC)
* Fix nameparser unit tests
### 0.24.7 (2021-06-30 22:10:00 UTC)
* Fix parse correct animes during recent and backlog search

2
sickbeard/name_parser/parser.py

@ -633,7 +633,7 @@ class NameParser(object):
and not final_result.release_group and None is not release_group:
final_result.release_group = release_group # use provider ID otherwise pick_best_result fails
if cache_result \
if cache_result and final_result.show_obj \
and any('anime' in wr for wr in final_result.which_regex) == bool(final_result.show_obj.is_anime):
name_parser_cache.add(name, final_result)

Loading…
Cancel
Save