Skip to content

Commit

Permalink
feat:规则组适用媒体类别
Browse files Browse the repository at this point in the history
  • Loading branch information
jxxghp committed Sep 12, 2024
1 parent 26abcca commit 9a62feb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/modules/filter/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ def filter_torrents(self, rule_groups: List[str],
# 规则组不适用当前媒体类型
logger.debug(f"规则组 {group_name} 不适用于 {mediainfo.type.value}")
continue
if rule_group.catetory and mediainfo.category and mediainfo.category != rule_group.catetory:
if rule_group.category and mediainfo.category and mediainfo.category != rule_group.category:
# 规则组不适用于当前媒体类别
logger.debug(f"规则组 {group_name} 不适用于 {mediainfo.category}")
continue
Expand Down
2 changes: 1 addition & 1 deletion app/schemas/rule.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@ class FilterRuleGroup(BaseModel):
# 适用类媒体类型 None-全部 电影/电视剧
media_type: Optional[str] = None
# 适用媒体类别 None-全部 对应二级分类
catetory: Optional[str] = None
category: Optional[str] = None

0 comments on commit 9a62feb

Please sign in to comment.