From c8fea233766fc1d0e426f28a6ecf2426c2063439 Mon Sep 17 00:00:00 2001 From: EillesWan Date: Mon, 21 Oct 2024 23:48:22 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BF=99=E6=80=BB=E6=B2=A1=E9=97=AE=E9=A2=98?= =?UTF-8?q?=E4=BA=86=E5=90=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../trimo_plugin_msctconverter/command_structure.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/nonebot_plugins/trimo_plugin_msctconverter/command_structure.py b/src/nonebot_plugins/trimo_plugin_msctconverter/command_structure.py index dcbf9e3..52ee034 100644 --- a/src/nonebot_plugins/trimo_plugin_msctconverter/command_structure.py +++ b/src/nonebot_plugins/trimo_plugin_msctconverter/command_structure.py @@ -542,7 +542,8 @@ async def _( forward_=axis_forward, limit_=length_limit, author=author_name, - outfile=usr_temp_path / file_to_convert / ".bdx", + outfile=os.path.splitext(usr_temp_path / file_to_convert)[0] + + ".bdx", ) )[0]: all_files[file_to_convert]["bdx"] = {