mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-09-05 23:47:41 +08:00
fix user
This commit is contained in:
@@ -454,6 +454,7 @@ class ChainBase(metaclass=ABCMeta):
|
||||
:param message: 消息体
|
||||
:return: 成功或失败
|
||||
"""
|
||||
# TODO 根据消息场景开关决定发给谁
|
||||
logger.info(f"发送消息:channel={message.channel},"
|
||||
f"source={message.source},"
|
||||
f"title={message.title}, "
|
||||
|
||||
@@ -339,7 +339,7 @@ class DownloadChain(ChainBase):
|
||||
if files_to_add:
|
||||
self.downloadhis.add_files(files_to_add)
|
||||
|
||||
# 发送消息(群发,不带channel和userid)
|
||||
# 发送消息 TODO 根据消息场景开关决定发给谁
|
||||
self.post_download_message(meta=_meta, mediainfo=_media, torrent=_torrent,
|
||||
username=username, download_episodes=download_episodes)
|
||||
# 下载成功后处理
|
||||
|
||||
@@ -81,11 +81,11 @@ class MediaServerChain(ChainBase):
|
||||
if not mediaserver:
|
||||
continue
|
||||
server_name = mediaserver.name
|
||||
sync_blacklist = mediaserver.config.get("sync_blacklist") or []
|
||||
sync_blacklist = mediaserver.sync_libraries or []
|
||||
logger.info(f"开始同步媒体库 {server_name} 的数据 ...")
|
||||
for library in self.librarys(server_name):
|
||||
# 同步黑名单 跳过
|
||||
if library.name in sync_blacklist:
|
||||
if library.id in sync_blacklist:
|
||||
continue
|
||||
logger.info(f"正在同步 {server_name} 媒体库 {library.name} ...")
|
||||
library_count = 0
|
||||
|
||||
@@ -179,7 +179,6 @@ class SubscribeChain(ChainBase):
|
||||
text = f"评分:{mediainfo.vote_average},来自用户:{username}"
|
||||
else:
|
||||
text = f"评分:{mediainfo.vote_average}"
|
||||
# 群发
|
||||
if mediainfo.type == MediaType.TV:
|
||||
link = settings.MP_DOMAIN('#/subscribe-tv?tab=mysub')
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user