mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-07-09 22:43:44 +08:00
fix(push): correct client type
This commit is contained in:
@@ -23,7 +23,7 @@ class SlackModule(_ModuleBase, _MessageBase):
|
|||||||
self._configs = {}
|
self._configs = {}
|
||||||
self._clients = {}
|
self._clients = {}
|
||||||
for client in clients:
|
for client in clients:
|
||||||
if client.type == "telegram" and client.enabled:
|
if client.type == "slack" and client.enabled:
|
||||||
self._configs[client.name] = client
|
self._configs[client.name] = client
|
||||||
self._clients[client.name] = Slack(**client.config, name=client.name)
|
self._clients[client.name] = Slack(**client.config, name=client.name)
|
||||||
|
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ class SynologyChatModule(_ModuleBase, _MessageBase):
|
|||||||
self._configs = {}
|
self._configs = {}
|
||||||
self._clients = {}
|
self._clients = {}
|
||||||
for client in clients:
|
for client in clients:
|
||||||
if client.type == "slack" and client.enabled:
|
if client.type == "synologychat" and client.enabled:
|
||||||
self._configs[client.name] = client
|
self._configs[client.name] = client
|
||||||
self._clients[client.name] = SynologyChat(**client.config)
|
self._clients[client.name] = SynologyChat(**client.config)
|
||||||
|
|
||||||
|
|||||||
@@ -41,7 +41,7 @@ class NotificationConf(BaseModel):
|
|||||||
"""
|
"""
|
||||||
# 名称
|
# 名称
|
||||||
name: Optional[str] = None
|
name: Optional[str] = None
|
||||||
# 类型 telegram/wechat/vocechat/synologychat
|
# 类型 telegram/wechat/vocechat/synologychat/slack/webpush
|
||||||
type: Optional[str] = None
|
type: Optional[str] = None
|
||||||
# 配置
|
# 配置
|
||||||
config: Optional[dict] = {}
|
config: Optional[dict] = {}
|
||||||
|
|||||||
Reference in New Issue
Block a user