fix #1608
This commit is contained in:
parent
0f09da55b0
commit
54f808485e
@ -48,7 +48,7 @@ class FileTransferModule(_ModuleBase):
|
||||
return False, f"目录不存在:{library_path}"
|
||||
if settings.TRANSFER_TYPE == "link":
|
||||
if library_path.stat().st_dev != download_devid:
|
||||
return False, "下载目录与媒体库目录不在同一设备,将导致硬链接失败"
|
||||
return False, f"下载目录 {download_path} 与媒体库目录 {library_path} 不在同一设备,将无法硬链接"
|
||||
return True, ""
|
||||
|
||||
def init_setting(self) -> Tuple[str, Union[str, bool]]:
|
||||
|
@ -98,10 +98,8 @@ class VoceChat:
|
||||
return None
|
||||
|
||||
try:
|
||||
index, image, caption = 1, "", "**%s**" % title
|
||||
index, caption = 1, "**%s**" % title
|
||||
for media in medias:
|
||||
if not image:
|
||||
image = media.get_message_image()
|
||||
if media.vote_average:
|
||||
caption = "%s\n%s. [%s](%s)\n_%s,%s_" % (caption,
|
||||
index,
|
||||
@ -163,8 +161,7 @@ class VoceChat:
|
||||
else:
|
||||
chat_id = f"GID#{self._channel_id}"
|
||||
|
||||
return self.__send_request(userid=chat_id, caption=caption,
|
||||
image=mediainfo.get_message_image())
|
||||
return self.__send_request(userid=chat_id, caption=caption)
|
||||
|
||||
except Exception as msg_e:
|
||||
logger.error(f"发送消息失败:{msg_e}")
|
||||
|
Loading…
x
Reference in New Issue
Block a user