Merge pull request #1587 from WangEdward/main
This commit is contained in:
commit
4734851213
@ -462,6 +462,7 @@ class SubscribeChain(ChainBase):
|
||||
"effect": subscribe.effect or default_rule.get("effect"),
|
||||
"tv_size": default_rule.get("tv_size"),
|
||||
"movie_size": default_rule.get("movie_size"),
|
||||
"min_seeders": default_rule.get("min_seeders"),
|
||||
}
|
||||
|
||||
def match(self, torrents: Dict[str, List[Context]]):
|
||||
|
@ -324,6 +324,12 @@ class TorrentHelper(metaclass=Singleton):
|
||||
|
||||
if not filter_rule:
|
||||
return True
|
||||
|
||||
# 最少做种人数
|
||||
min_seeders = filter_rule.get("min_seeders")
|
||||
if min_seeders and torrent_info.seeders < int(min_seeders):
|
||||
logger.info(f"{torrent_info.title} 做种人数不足 {min_seeders}")
|
||||
return False
|
||||
# 包含
|
||||
include = filter_rule.get("include")
|
||||
if include:
|
||||
|
Loading…
x
Reference in New Issue
Block a user