mirror of
https://github.com/thsrite/MoviePilot-Plugins.git
synced 2026-05-22 07:16:44 +00:00
fix 微信消息转发v2.7特殊消息指定用户支持title匹配
This commit is contained in:
@@ -22,7 +22,7 @@ class WeChatForward(_PluginBase):
|
||||
# 插件图标
|
||||
plugin_icon = "Wechat_A.png"
|
||||
# 插件版本
|
||||
plugin_version = "2.6"
|
||||
plugin_version = "2.7"
|
||||
# 插件作者
|
||||
plugin_author = "thsrite"
|
||||
# 作者主页
|
||||
@@ -687,7 +687,7 @@ class WeChatForward(_PluginBase):
|
||||
specify = specify_conf.split(" > ")
|
||||
if len(specify) != 3:
|
||||
continue
|
||||
if re.search(specify[0], title) and re.search(specify[1], text):
|
||||
if re.search(specify[0], title) and (re.search(specify[1], text) or re.search(specify[1], title)):
|
||||
userid = specify[2]
|
||||
logger.info(f"消息 {title} {text} 指定用户 {userid}")
|
||||
break
|
||||
|
||||
Reference in New Issue
Block a user