mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-08-25 02:00:13 +08:00
fix bug
This commit is contained in:
@@ -501,6 +501,7 @@ class ChainBase(metaclass=ABCMeta):
|
|||||||
actions = notify_action.split(",")
|
actions = notify_action.split(",")
|
||||||
# 是否已发送管理员标志
|
# 是否已发送管理员标志
|
||||||
admin_sended = False
|
admin_sended = False
|
||||||
|
send_orignal = False
|
||||||
for action in actions:
|
for action in actions:
|
||||||
send_message = copy.deepcopy(message)
|
send_message = copy.deepcopy(message)
|
||||||
if action == "admin":
|
if action == "admin":
|
||||||
@@ -528,12 +529,14 @@ class ChainBase(metaclass=ABCMeta):
|
|||||||
continue
|
continue
|
||||||
else:
|
else:
|
||||||
# 按原消息发送全体
|
# 按原消息发送全体
|
||||||
|
send_orignal = True
|
||||||
break
|
break
|
||||||
# 按设定发送
|
# 按设定发送
|
||||||
self.eventmanager.send_event(etype=EventType.NoticeMessage,
|
self.eventmanager.send_event(etype=EventType.NoticeMessage,
|
||||||
data={**send_message.dict(), "type": send_message.mtype})
|
data={**send_message.dict(), "type": send_message.mtype})
|
||||||
self.run_module("post_message", message=send_message)
|
self.run_module("post_message", message=send_message)
|
||||||
return
|
if not send_orignal:
|
||||||
|
return
|
||||||
# 发送消息事件
|
# 发送消息事件
|
||||||
self.eventmanager.send_event(etype=EventType.NoticeMessage, data={**message.dict(), "type": message.mtype})
|
self.eventmanager.send_event(etype=EventType.NoticeMessage, data={**message.dict(), "type": message.mtype})
|
||||||
# 按原消息发送
|
# 按原消息发送
|
||||||
|
|||||||
@@ -1,2 +1,2 @@
|
|||||||
APP_VERSION = 'v2.1.9'
|
APP_VERSION = 'v2.1.9-1'
|
||||||
FRONTEND_VERSION = 'v2.1.9'
|
FRONTEND_VERSION = 'v2.1.9'
|
||||||
|
|||||||
Reference in New Issue
Block a user