Skip to content

Commit

Permalink
[116] Improve series name matching algorithm
Browse files Browse the repository at this point in the history
  • Loading branch information
CollinHeist committed Nov 28, 2024
1 parent 3e3e3f5 commit e3b91e5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
10 changes: 7 additions & 3 deletions modules/SeriesInfo2.py
Original file line number Diff line number Diff line change
Expand Up @@ -437,9 +437,13 @@ def matches(self, *names: str) -> bool:
otherwise.
"""

matching_names = map(self.get_matching_title, names)

return any(name == self.match_name for name in matching_names)
return (
any(name in (self.full_name, self.name) for name in names)
or any(
name == self.match_name
for name in map(self.get_matching_title, names)
)
)


def filter_conditions(self,
Expand Down
2 changes: 1 addition & 1 deletion modules/ref/version_webui
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v2.0-alpha.13.0-webui115
v2.0-alpha.13.0-webui116

0 comments on commit e3b91e5

Please sign in to comment.