diff --git a/app/modules/filetransfer/__init__.py b/app/modules/filetransfer/__init__.py index 3f9dcc17..2f148ad9 100644 --- a/app/modules/filetransfer/__init__.py +++ b/app/modules/filetransfer/__init__.py @@ -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]]: diff --git a/app/modules/vocechat/vocechat.py b/app/modules/vocechat/vocechat.py index 9f8abd95..30ac05d6 100644 --- a/app/modules/vocechat/vocechat.py +++ b/app/modules/vocechat/vocechat.py @@ -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}")