feat: 添加抖音视频解析插件并优化代码结构

添加抖音视频解析插件,支持自动解析抖音分享链接并提取视频信息。优化现有代码结构,包括:
- 重构单例模式实现
- 移除未使用的导入和文件
- 修复性能测试脚本中的异步调用
- 优化消息事件模型中的权限常量定义
- 改进编译脚本的错误处理
- 增强B站解析插件的稳定性

同时清理了多个废弃脚本和临时文件,提升代码可维护性。
This commit is contained in:
2026-01-19 01:16:22 +08:00
parent 067d81a07c
commit 9f54a98c17
17 changed files with 680 additions and 519 deletions

View File

@@ -8,8 +8,6 @@ import time
from core.utils.performance import (
timeit,
profile,
aprofile,
PerformanceStats,
performance_stats
)
@@ -52,7 +50,7 @@ async def main():
print("=" * 80)
with profile(enabled=False): # 禁用实际分析以避免输出太多
time.sleep(0.05)
await asyncio.sleep(0.05)
print("性能分析上下文管理器测试完成")
# 测试4: 性能统计报告
@@ -60,7 +58,7 @@ async def main():
print("=" * 80)
# 执行多次函数调用
for i in range(3):
for _ in range(3):
sync_test()
await async_test()