Invoice-Downloader
EthanYoQ
电子发票整理与报销准备工具:从邮箱批量收集 PDF/OFD/XML 发票,OCR 识别、分类归档并生成 Excel 汇总;提供 Windows/macOS 桌面版与 DSH 插件。
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:loyalchiiina/dsh-sidebar-media-player
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
侧边栏统一音视频播放器,作为 dsh-better-sidebar 的配套插件:一个 viewer 同时接管视频与音频预览,并提供独立的播放器面板(QQ 音乐在线曲库 + 本地音乐库)、一条可三态摆放的胶囊播放条,以及实时频谱 / 音准 / 歌词 / 字幕等播放态增强。
适配 DSH 内核 0.2.2-rc.1;当前版本 0.2.7。
0.2.6 起,此前记录的已知缺陷(进度条拖不动、切歌/收藏/倍速失效、歌词动效不生效、胶囊位置切换后消失等)已逐项修复;发布前对默认值、源码改动与打包清单做过机器断言核验(校验脚本随源码改动在开发环境执行,未纳入发布包)。仍建议先小范围试用再依赖。
dsh-better-sidebar(提供 ctx.betterSidebar 文件查看器注册服务;缺失时插件自动降级,不影响 DSH 启动)本插件是第三方爱好者工具,不是 QQ 音乐官方产品,与腾讯 / QQ 音乐没有任何隶属或合作关系。
为避免误会,把来源讲清楚:
照抄第三方原作者的部分(上游 MIT)
dsh-music-player v1.0.4(MIT,作者 kendu76),源码内已注明参照位置。lib/qq.js 的接口签名、请求与响应解析,以及 lib/qrc.js 的扫码登录渲染 —— 来自上游实现(MIT),版权归原作者。本人设计并实现的部分
ctx.betterSidebar viewer 注册、侧边栏播放器面板、页签行(QQ音乐 / 本地音乐 / 隐藏列表 / ⟲ / ⟳)。.srt / .vtt / .ass(宿主统一转 VTT),自绘字幕层,支持开关 / 字号 4 档 / 位置 3 档,设置本地记忆。content-length 被剥离时用整文件 Blob 兜底,保证时长与 seek 可用。QQ音乐 / 本地音乐 两个页签(点页签自动展开列表)+ 隐藏列表(只留上方播放器)+ ⟲ 刷新 QQ 数据(不重载页面、不中断播放)+ ⟳ 检查更新。/media 直链,避免占内存。contain 自适应、VIP 左上角标、播放键右下小圆。GET /qq/liked 读、POST /qq/fav 写),不是插件自建的本地标记。SMP_STORE):收藏、上一首、播放/暂停、下一首、停止、音量、播放列表。| 项 | 默认值 |
|---|---|
| 胶囊位置 | 输入框上方(dock) |
| QQ 卡片列数 | 10 列 |
| 歌词动效 | 炫彩(rainbow) |
| 循环模式 | 顺序播放 |
| 频谱 | 打开,柱状 |
| 歌词模式 | 两句(duo) |
升级到 0.2.6 时会做一次一次性迁移(localStorage 标记 smp.appearanceRev2),把上述外观项拉到默认值;之后手动改过的设置完全保留,不再被覆盖。
官方安装方式:DSH 设置页的「插件市场」直接安装,或由宿主通过 plugin_manager 的 install_bundle 安装(target 填本插件目录,或填 npm 包名 dsh-sidebar-media-player)。安装与 bundle 选择一律走这条官方通道,不要用 shell / CLI 复刻安装步骤。
桌面端绕行说明(宿主限制下的 workaround):桌面端
desktopprofile 由 Electron 独占管理,CLI 通道对desktopprofile 不可用(dsh plugin --profile desktop add会被 CLI 直接拒绝)。因此在桌面端需要「真实副本 + 只加 bundles」的手动挂载:
- 备份
~/.dsh/profiles/desktop/package.json与cordis.patch.yml;- 把插件真实副本放到
local-plugins/下并加入 profile 的dependencies与dsh.profile.bundles;- 彻底退出 DSH 客户端再启动(宿主是 Node 进程,没有热重载)。
| 改了什么 | 怎么生效 |
|---|---|
lib/client.js(客户端 bundle) |
Ctrl+Shift+R 硬刷新;没变化就彻底退出 DSH 再启动 |
lib/index.js(宿主端)/ package.json / cordis.patch.yml |
彻底退出 DSH 客户端再启动 |
面板底部构建戳(构建 YYYY-MM-DD HH:mm) |
用来判断是否加载到新 bundle |



QQ 登录态的存放位置:当前版本仍把 QQ 音乐登录 Cookie 写在本机 ~/.dsh/sidebar-media-player-qq-cookie.json(明文、仅本机可见),尚未迁到 DSH 官方的凭据服务(ctx.credentials)。后续版本会迁移;迁移前请自行注意该文件的存在与清理。
QQ 音乐的付费 / VIP 曲目受登录账号权限限制;无版权或下架曲目无法播放。
浏览器原生不支持的编码(wma / ape / ncm / qmc)只能提示,不能解码。
无歌词 / 无时间轴的曲目显示「无歌词」;逐字歌词缺失时回落到整行歌词。
本地音乐的 seek 依赖整文件 Blob,超大文件(>250MB)走直链时依赖浏览器 Range 缓冲进度。
dsh-sidebar-media-player/
├── package.json # name/version/type/main/exports/dsh.bundle/dsh.client
├── cordis.patch.yml # insert 1 条 entry(id=name=dsh-sidebar-media-player)
├── lib/index.js # host:Range(206) 媒体路由 / 曲库扫描 / 歌词字幕 / QQ 音乐代理
├── lib/client.js # client:__ModuleLoader__ bundle(viewer + 面板 + 胶囊条)
├── lib/qq.js # QQ 音乐接口签名与解析
├── lib/qrc.js # 二维码渲染(QQ 登录扫码)
├── docs/screenshots/ # 真实界面截图
├── screenshots.json # 插件市场配图清单(纯数组、相对路径)
├── locale/{zh,en}.json # 市场标题与描述
├── icon.svg
├── CHANGELOG.md
├── README.md
└── LICENSE
见 CHANGELOG.md。
A unified audio + video player for dsh-better-sidebar. One viewer takes over audio/video preview, and the plugin adds its own player panel (QQ Music online library + local library) and a capsule bar that can sit in three places, plus live spectrum, pitch readout, lyrics and subtitles.
Adapts the DSH kernel 0.2.2-rc.1; current version 0.2.7.
Since 0.2.6, the previously documented defects (undroppable scrubber, dead next/favourite/rate controls, lyrics effects not applying, capsule disappearing after changing position) have been fixed one by one. Defaults, source changes and the packed file list were checked with machine assertions during development; those check scripts live in the development environment and are not shipped in this package. Trying it on a small scale first is still recommended.
dsh-better-sidebar (provides the ctx.betterSidebar viewer registration service; when absent the plugin degrades gracefully and never blocks DSH startup)This plugin is a third-party hobby tool. It is not an official QQ Music product and has no affiliation or partnership with Tencent / QQ Music.
Copied from third-party upstream (MIT)
dsh-music-player v1.0.4 (MIT, by kendu76); the source marks every reference location.lib/qq.js, plus the QR login renderer lib/qrc.js, come from that upstream implementation (MIT). Copyright remains with the original author.Designed and implemented here
ctx.betterSidebar viewer registration, the player panel, and the tab row (QQ音乐 / 本地音乐 / hide list / ⟲ / ⟳)..srt / .vtt / .ass auto-loaded (converted to VTT host-side), custom subtitle layer with on/off, 4 font sizes and 3 positions, remembered locally.content-length, a whole-file Blob rescue keeps duration and seeking working.QQ音乐 / 本地音乐 tabs (clicking a tab auto-expands the list) + Hide list (keeps only the top player) + ⟲ refresh QQ data (no page reload, no playback interruption) + ⟳ check for updates./media to keep memory flat.contain artwork, VIP corner badge, small play button.GET /qq/liked / POST /qq/fav), not a local flag.SMP_STORE): favourite, previous, play/pause, next, stop, volume, playlist.| Item | Default |
|---|---|
| Capsule position | Above the input box (dock) |
| QQ grid columns | 10 |
| Lyric effect | Rainbow |
| Loop mode | Sequential |
| Spectrum | On, bars |
| Lyric mode | Two lines (duo) |
Upgrading to 0.2.6 runs a one-time migration (localStorage marker smp.appearanceRev2) that pulls these appearance settings back to defaults; anything you change afterwards is preserved.
Official way: install it from the plugin market in the DSH settings page, or have the host install it through plugin_manager's install_bundle (target = this plugin directory, or the npm package name dsh-sidebar-media-player). Package installation and bundle selection always go through this official channel — do not reproduce those steps with shell commands.
Desktop workaround (Electron-managed desktop profile): on desktop the
desktopprofile is managed exclusively by Electron and the CLI channel is not available for it (dsh plugin --profile desktop addis rejected by the CLI). So on desktop, mount it manually with a real copy plus bundles only: back up~/.dsh/profiles/desktop/package.jsonandcordis.patch.yml, place a real copy underlocal-plugins/, wire it intodependenciesanddsh.profile.bundles, then fully quit and relaunch DSH (the host is a Node process with no hot reload).
| What changed | How to apply |
|---|---|
lib/client.js (client bundle) |
Ctrl+Shift+R hard refresh; if nothing changes, fully quit and relaunch DSH |
lib/index.js (host) / package.json / cordis.patch.yml |
Fully quit and relaunch DSH |
Build stamp at the panel bottom (构建 YYYY-MM-DD HH:mm) |
Tells you whether the new bundle is loaded |



Where the QQ login state lives: this version still writes the QQ Music login cookie to a plaintext file at ~/.dsh/sidebar-media-player-qq-cookie.json (local machine only) instead of the official DSH credential service (ctx.credentials). A later version will migrate it; until then be aware of that file and clean it up yourself.
Paid/VIP QQ Music tracks depend on the signed-in account; unavailable or delisted tracks cannot be played.
Codecs the browser cannot decode (wma / ape / ncm / qmc) can only be reported.
Tracks without lyrics or timestamps show "no lyrics"; word-by-word lyrics fall back to line lyrics.
Local seeking relies on a whole-file Blob; for files over 250MB streamed directly, the browser's Range buffering applies.
dsh-sidebar-media-player/
├── package.json # name/version/type/main/exports/dsh.bundle/dsh.client
├── cordis.patch.yml # one insert entry (id=name=dsh-sidebar-media-player)
├── lib/index.js # host: Range(206) media route / library scan / lyric+subtitle / QQ proxy
├── lib/client.js # client: __ModuleLoader__ bundle (viewer + panel + capsule bar)
├── lib/qq.js # QQ Music signing and parsing
├── lib/qrc.js # QR code rendering (QQ login scan)
├── docs/screenshots/ # real UI screenshots
├── screenshots.json # marketplace screenshot list (plain array, relative paths)
├── locale/{zh,en}.json # marketplace title and description
├── icon.svg
├── CHANGELOG.md
├── README.md
└── LICENSE
See CHANGELOG.md.
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: im。