Skip to content

Commit

Permalink
更新 __init__.py
Browse files Browse the repository at this point in the history
  • Loading branch information
jxxghp authored Oct 26, 2024
1 parent bb9690c commit bbac709
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/modules/filter/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -348,11 +348,11 @@ def __match_rule(self, torrent: TorrentInfo, rule_name: str) -> bool:
# 包含规则项
includes = self.rule_set[rule_name].get("include") or []
if isinstance(includes, str):
includes = includes.split("|")
includes = [includes]
# 排除规则项
excludes = self.rule_set[rule_name].get("exclude") or []
if isinstance(excludes, str):
excludes = excludes.split("|")
excludes = [excludes]
# 大小范围规则项
size_range = self.rule_set[rule_name].get("size_range")
# 做种人数规则项
Expand Down

0 comments on commit bbac709

Please sign in to comment.