RoseSong
使用rust实现的CLI音频播放器,通过gstreamer解码播放b站视频的音频/ A CLI audio player implemented in Rust that decodes and plays the audio of bilibili videos using GStreamer.
Install / Use
/learn @huahuadeliaoliao/RoseSongREADME
简介
RoseSong 是一个基于 Rust 构建的命令行播放器,依赖 GStreamer 解码播放 Bilibili 音频。它通过 D-Bus 进行进程间通信,可以快速导入 B 站收藏夹(注意:目标收藏夹在导入时需要设置为公开状态)。
<details> <summary><strong style="font-size: 1.5em;">安装说明</strong></summary>
1. Linux 系统
1.1 Debian/Ubuntu 用户
你可以直接下载 Release 页面 中提供的 .deb 文件进行安装。
1.2 其他 Linux 发行版
- RoseSong 依赖 GStreamer 和 D-Bus,绝大多数 Linux 系统默认已经安装这些依赖。如果运行遇到问题,请确保这两个依赖项已经安装。
- 使用以下命令安装 RoseSong,这将会把
rosesong和rsg二进制可执行文件(仅支持 Linux amd64)安装到当前用户的.local/bin目录中:
curl -s https://raw.githubusercontent.com/huahuadeliaoliao/RoseSong/main/installation_script/install_rosesong.sh | bash
- 也可以直接使用cargo安装RoseSong:
cargo install rosesong
2. MacOS
- 如果安装了GStreamer和D-Bus可以使用cargo安装RoseSong
3. Windows
- 暂不支持
构建说明
在 Linux 上构建 RoseSong 需要安装 Rust 以及 GStreamer 开发包。构建命令如下:
cargo b --release
构建完成后的二进制文件位于 target/release 目录下。
PR 贡献指南
感谢您对 RoseSong 项目的贡献!
- 本项目使用
cargo clippy管理代码质量及风格。在提交 PR 之前,请确保cargo clippy没有任何警告或错误信息。 - 提交前,使用
cargo fmt统一格式化代码。
再次感谢您的贡献!
<details> <summary><strong style="font-size: 1.5em;">使用示例</strong></summary>
基本命令
- 使用
rsg -h获取帮助信息:
- 使用
rsg add -f fid通过 fid 导入收藏夹(fid 是 B 站收藏夹网址中的数字,导入收藏夹可能需要等待一段时间):
- 使用
rsg add -b bvid通过 bvid 导入歌曲(bvid 是 B 站视频网址中的 BV 开头的字符串):
- 使用
rsg delete删除导入的歌曲:
- 使用
rsg find查找导入歌曲的信息:
版本历史
版本 1.0.0
Related Skills
himalaya
351.8kCLI to manage emails via IMAP/SMTP. Use `himalaya` to list, read, write, reply, forward, search, and organize emails from the terminal. Supports multiple accounts and message composition with MML (MIME Meta Language).
taskflow
351.8kname: taskflow description: Use when work should span one or more detached tasks but still behave like one job with a single owner context. TaskFlow is the durable flow substrate under authoring layer
qqbot-channel
351.8kQQ 频道管理技能。查询频道列表、子频道、成员、发帖、公告、日程等操作。使用 qqbot_channel_api 工具代理 QQ 开放平台 HTTP 接口,自动处理 Token 鉴权。当用户需要查看频道、管理子频道、查询成员、发布帖子/公告/日程时使用。
docs-writer
100.6k`docs-writer` skill instructions As an expert technical writer and editor for the Gemini CLI project, you produce accurate, clear, and consistent documentation. When asked to write, edit, or revie
