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