Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plugin: 音频文件BPM计算器 #3216

Closed
1 task
Ant1816 opened this issue Dec 28, 2024 · 7 comments · Fixed by #3217
Closed
1 task

Plugin: 音频文件BPM计算器 #3216

Ant1816 opened this issue Dec 28, 2024 · 7 comments · Fixed by #3217
Labels
Plugin Publish Plugin Publish Publish things to store

Comments

@Ant1816
Copy link
Contributor

Ant1816 commented Dec 28, 2024

PyPI 项目名

nonebot-plugin-checkbpm

插件 import 包名

nonebot_plugin_checkbpm

标签

[{"label":"music","color":"#ea5252"},{"label":"bpm","color":"#ea5252"},{"label":"tool","color":"#ea5252"}]

插件配置项

插件测试

  • 如需重新运行插件测试,请勾选左侧勾选框
@Ant1816 Ant1816 added Plugin Publish Plugin Publish Publish things to store labels Dec 28, 2024
@noneflow
Copy link
Contributor

noneflow bot commented Dec 28, 2024

📃 商店发布检查结果

Plugin: 音频文件BPM计算器

✅ 所有测试通过,一切准备就绪!

详情
  • ✅ 项目 主页 返回状态码 200。
  • ✅ 项目 nonebot-plugin-checkbpm 已发布至 PyPI。
  • ✅ 标签: music-#ea5252, bpm-#ea5252, tool-#ea5252。
  • ✅ 插件类型: application。
  • ✅ 插件支持的适配器: nonebot.adapters.onebot.v11。
  • ✅ 插件 加载测试 通过。
  • ✅ 版本号: 1.0.7。
  • ✅ 发布时间:2025-01-01 03:14:56 CST。

  • 💡 如需修改信息,请直接修改 issue,机器人会自动更新检查结果。
    💡 当插件加载测试失败时,请发布新版本后勾选插件测试勾选框重新运行插件测试。

    ♻️ 评论已更新至最新检查结果

    💪 Powered by NoneFlow

    @noneflow noneflow bot changed the title Plugin: 音频文件BPM计算器 Plugin: nonebot-plugin-checkbpm Dec 28, 2024
    @noneflow noneflow bot changed the title Plugin: nonebot-plugin-checkbpm Plugin: 音频文件BPM计算器 Dec 28, 2024
    @yanyongyu
    Copy link
    Member

    看上去你的加载文件和分析文件可以用 asyncio.to_thread 放到线程池计算?文件缓存路径应该使用 cache dir 吧,使用完应该得删除。

    @Ant1816
    Copy link
    Contributor Author

    Ant1816 commented Dec 29, 2024

    已使用asyncio.to_thread线程池计算 文件下载路径使用缓存目录后删除

    @yanyongyu
    Copy link
    Member

    localstore 应该用 get_plugin_cache_dir ,删除 file 应该放在 try finally 里吧。

    @Ant1816
    Copy link
    Contributor Author

    Ant1816 commented Dec 31, 2024

    已使用get_plugin_cache_dir()获取插件缓存目录 尝试删除文件操作放入finally:

    @yanyongyu
    Copy link
    Member

    你finally的地方放错了啊,你IDE不报错的吗。。。你这样file path会unbound。

    @Ant1816
    Copy link
    Contributor Author

    Ant1816 commented Dec 31, 2024

    已更改

    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    Plugin Publish Plugin Publish Publish things to store
    Development

    Successfully merging a pull request may close this issue.

    2 participants