mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-09-07 16:36:53 +08:00
更新 __init__.py
This commit is contained in:
@@ -336,28 +336,28 @@ class FilterModule(_ModuleBase):
|
|||||||
for include in includes:
|
for include in includes:
|
||||||
if not re.search(r"%s" % include, content, re.IGNORECASE):
|
if not re.search(r"%s" % include, content, re.IGNORECASE):
|
||||||
# 未发现包含项
|
# 未发现包含项
|
||||||
logger.debug(f"种子 {torrent.site_name} - {torrent.title} 不包含 {include},匹配失败")
|
logger.debug(f"种子 {torrent.site_name} - {torrent.title} 不包含 {include}")
|
||||||
return False
|
return False
|
||||||
for exclude in excludes:
|
for exclude in excludes:
|
||||||
if re.search(r"%s" % exclude, content, re.IGNORECASE):
|
if re.search(r"%s" % exclude, content, re.IGNORECASE):
|
||||||
# 发现排除项
|
# 发现排除项
|
||||||
logger.debug(f"种子 {torrent.site_name} - {torrent.title} 包含 {exclude},匹配失败")
|
logger.debug(f"种子 {torrent.site_name} - {torrent.title} 包含 {exclude}")
|
||||||
return False
|
return False
|
||||||
if size_range:
|
if size_range:
|
||||||
if not self.__match_size(torrent, size_range):
|
if not self.__match_size(torrent, size_range):
|
||||||
# 大小范围不匹配
|
# 大小范围不匹配
|
||||||
logger.debug(f"种子 {torrent.site_name} - {torrent.title} 大小 "
|
logger.debug(f"种子 {torrent.site_name} - {torrent.title} 大小 "
|
||||||
f"{StringUtils.str_filesize(torrent.size)} 不在范围 {size_range}MB,匹配失败")
|
f"{StringUtils.str_filesize(torrent.size)} 不在范围 {size_range}MB")
|
||||||
return False
|
return False
|
||||||
if seeders:
|
if seeders:
|
||||||
if torrent.seeders < int(seeders):
|
if torrent.seeders < int(seeders):
|
||||||
# 做种人数不匹配
|
# 做种人数不匹配
|
||||||
logger.debug(f"种子 {torrent.site_name} - {torrent.title} 做种人数 {torrent.seeders} 小于 {seeders},匹配失败")
|
logger.debug(f"种子 {torrent.site_name} - {torrent.title} 做种人数 {torrent.seeders} 小于 {seeders}")
|
||||||
return False
|
return False
|
||||||
if downloadvolumefactor is not None:
|
if downloadvolumefactor is not None:
|
||||||
if torrent.downloadvolumefactor != downloadvolumefactor:
|
if torrent.downloadvolumefactor != downloadvolumefactor:
|
||||||
# FREE规则不匹配
|
# FREE规则不匹配
|
||||||
logger.debug(f"种子 {torrent.site_name} - {torrent.title} FREE值 {torrent.downloadvolumefactor} 不是 {downloadvolumefactor},匹配失败")
|
logger.debug(f"种子 {torrent.site_name} - {torrent.title} FREE值 {torrent.downloadvolumefactor} 不是 {downloadvolumefactor}")
|
||||||
return False
|
return False
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user