mirror of
https://github.com/TriM-Organization/LiteyukiBot-TriM.git
synced 2026-01-24 20:52:11 +00:00
😅修复了内存停留的问题
This commit is contained in:
@@ -257,15 +257,23 @@ async def _(
|
||||
or (
|
||||
isinstance(msct_obj, tuple)
|
||||
and (
|
||||
isinstance(msct_obj[0], Musicreater.MidiConvert)
|
||||
and msct_obj[1]
|
||||
!= (
|
||||
not _args["enable-mismatch-error"],
|
||||
_args["play-speed"],
|
||||
_args["default-tempo"],
|
||||
pitched_notechart,
|
||||
percussion_notechart,
|
||||
volume_curve,
|
||||
(
|
||||
isinstance(msct_obj[0], Musicreater.MidiConvert)
|
||||
and msct_obj[1]
|
||||
!= (
|
||||
not _args["enable-mismatch-error"],
|
||||
_args["play-speed"],
|
||||
_args["default-tempo"],
|
||||
pitched_notechart,
|
||||
percussion_notechart,
|
||||
volume_curve,
|
||||
)
|
||||
)
|
||||
or (
|
||||
msct_obj[0].music_name
|
||||
!= os.path.splitext(
|
||||
os.path.basename(usr_data_path / file_to_convert)
|
||||
)[0].replace(" ", "_")
|
||||
)
|
||||
)
|
||||
)
|
||||
@@ -306,6 +314,12 @@ async def _(
|
||||
percussion_notechart,
|
||||
volume_curve,
|
||||
)
|
||||
and (
|
||||
msct_obj[0].music_name
|
||||
!= os.path.splitext(
|
||||
os.path.basename(usr_data_path / file_to_convert)
|
||||
)[0].replace(" ", "_")
|
||||
)
|
||||
):
|
||||
nonebot.logger.info("载入已有缓存。")
|
||||
msct_obj = msct_obj[0]
|
||||
|
||||
Reference in New Issue
Block a user