✨ 新功能: - 创建bilibili_audio_downloader_pro.py (Pro版) - 全新架构重构 - 添加config.json配置文件支持 - 新增INSTALL.md详细安装指南 - 新增VERSION_COMPARISON.md版本对比说明 🐛 Bug修复 (v14.0): - 修复中文编码显示问题 - 修复ffmpeg进度条计算不准确 - 改进yt-dlp下载进度解析 - 添加重试机制和超时设置 - 完善错误处理和日志记录 🏗️ Pro版优势: - 面向对象架构设计,代码更清晰 - 自定义异常类和智能错误恢复 - 准确的进度条显示算法 - 完整的日志系统 - 灵活的配置管理 - 更好的用户体验 📚 文档更新: - 更新README.md,添加版本对比指引 - 更新requirements.txt依赖列表 - 完善项目文档结构
70 lines
1.2 KiB
Protocol Buffer
70 lines
1.2 KiB
Protocol Buffer
syntax = "proto3";
|
|
|
|
package bilibili.app.playeronline.v1;
|
|
|
|
// 在线人数
|
|
service PlayerOnline {
|
|
// 获取在线人数
|
|
rpc PlayerOnline (PlayerOnlineReq) returns (PlayerOnlineReply);
|
|
//
|
|
rpc PremiereInfo(PremiereInfoReq) returns (PremiereInfoReply);
|
|
//
|
|
rpc ReportWatch(ReportWatchReq) returns (NoReply);
|
|
}
|
|
|
|
// 空回复
|
|
message NoReply {}
|
|
|
|
// 获取在线人数-回复
|
|
message PlayerOnlineReply {
|
|
//
|
|
string total_text = 1;
|
|
// 下次轮询间隔时间
|
|
int64 sec_next = 2;
|
|
// 是否底部显示
|
|
bool bottom_show = 3;
|
|
//
|
|
bool sdm_show = 4;
|
|
//
|
|
string sdm_text = 5;
|
|
//
|
|
int64 total_number = 6;
|
|
//
|
|
string total_number_text = 7;
|
|
}
|
|
|
|
// 获取在线人数-请求
|
|
message PlayerOnlineReq {
|
|
// 稿件 avid
|
|
int64 aid = 1;
|
|
// 视频 cid
|
|
int64 cid = 2;
|
|
// 是否在播放中
|
|
bool play_open = 3;
|
|
}
|
|
|
|
//
|
|
message PremiereInfoReply {
|
|
//
|
|
string premiere_over_text = 1;
|
|
//
|
|
int64 participant = 2;
|
|
//
|
|
int64 interaction = 3;
|
|
}
|
|
|
|
//
|
|
message PremiereInfoReq {
|
|
//
|
|
int64 aid = 1;
|
|
}
|
|
|
|
//
|
|
message ReportWatchReq {
|
|
//
|
|
int64 aid = 1;
|
|
//
|
|
string biz = 2;
|
|
//
|
|
string buvid = 3;
|
|
} |