mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-09-04 23:17:20 +08:00
feat:消息为链接时,交由第三方处理
This commit is contained in:
@@ -422,13 +422,17 @@ class MessageChain(ChainBase):
|
|||||||
or text.find("继续") != -1:
|
or text.find("继续") != -1:
|
||||||
# 聊天
|
# 聊天
|
||||||
content = text
|
content = text
|
||||||
action = "chat"
|
action = "Chat"
|
||||||
|
elif text.startswith("http"):
|
||||||
|
# 链接
|
||||||
|
content = text
|
||||||
|
action = "Link"
|
||||||
else:
|
else:
|
||||||
# 搜索
|
# 搜索
|
||||||
content = text
|
content = text
|
||||||
action = "Search"
|
action = "Search"
|
||||||
|
|
||||||
if action != "chat":
|
if action in ["Search", "ReSearch", "Subscribe", "ReSubscribe"]:
|
||||||
# 搜索
|
# 搜索
|
||||||
meta, medias = self.mediachain.search(content)
|
meta, medias = self.mediachain.search(content)
|
||||||
# 识别
|
# 识别
|
||||||
|
|||||||
Reference in New Issue
Block a user