100 Commits
Author SHA1 Message Date
TIANYAO ZHANG 20283aa6a7 fix(netease): bound playlist count lookups and prepare v1.16.2 2026-11-28 22:04:15 +08:00
TIANYAO ZHANG dfa15fd5a5 Merge pull request #203: count visible cloud playlist tracks
Closes #201

# Conflicts:
#	src/music/netease.test.ts
2026-11-28 21:58:56 +08:00
TIANYAO ZHANG 19c9a32850 Merge pull request #202: load complete NetEase playlists
Closes #200
2026-11-28 21:58:41 +08:00
TIANYAO ZHANG fc4d472685 Merge pull request #199 from ZHANGTIANYAO1/fix/open-issues-v1161
fix(playback): 修复断流续播、队列推进和平台取流错误,准备 v1.16.1
2026-11-18 18:40:20 +08:00
TIANYAO ZHANG b0393b42b2 fix(playback): preserve the current queue until direct play starts 2026-11-18 18:37:50 +08:00
TIANYAO ZHANG de6b050646 fix(playback): retain the successful quality when renewing a stream 2026-11-18 18:37:10 +08:00
TIANYAO ZHANG 20ad2d44a7 fix(qq): check collection playback with the room account 2026-11-18 18:37:10 +08:00
TIANYAO ZHANG 2db8c4cc05 fix(web): keep FM request timing scoped to its bot and result 2026-11-18 18:36:05 +08:00
TIANYAO ZHANG f965b70c22 chore(release): prepare v1.16.1 playback fixes 2026-11-18 18:33:16 +08:00
TIANYAO ZHANG 135ff0ae0e fix(playback): resume interrupted finite music streams 2026-11-18 18:31:46 +08:00
TIANYAO ZHANG d130652279 fix(teamspeak): resume only on arrivals in the bot channel 2026-11-18 18:31:19 +08:00
TIANYAO ZHANG e5470b6b78 fix(qq): verify sidecar ports and validate batch playback results 2026-11-18 18:31:19 +08:00
TIANYAO ZHANG 5c2a9468bd fix(web): preserve playback on invalid queue selections 2026-11-18 18:22:50 +08:00
TIANYAO ZHANG afb1cd7c14 fix(playback): skip blocked providers while advancing mixed queues 2026-11-18 18:22:50 +08:00
TIANYAO ZHANG 0adf21c566 fix(playback): preserve active playback and report actual start failures 2026-11-18 18:21:08 +08:00
TIANYAO ZHANG 23b36e2019 test(bilibili): check recovery request context 2026-11-18 18:21:08 +08:00
TIANYAO ZHANG d0e1422af7 fix(chat): report failed starts for queue and collection commands 2026-11-18 18:21:08 +08:00
TIANYAO ZHANG 1b57af6722 fix(bilibili): rotate CDN hosts during stream recovery 2026-11-18 18:16:47 +08:00
TIANYAO ZHANG fbc12aa11b fix(music): align QQ stream requests and surface provider failures 2026-11-18 18:16:47 +08:00
TIANYAO ZHANG 8ec3dcc405 Merge pull request #198 from ZHANGTIANYAO1/release/v1.16.0-maintenance
chore(release): prepare v1.16.0
2026-11-18 17:10:09 +08:00
TIANYAO ZHANG bd03cb1c59 fix(release): report the package version in health metadata 2026-11-18 17:09:59 +08:00
TIANYAO ZHANG 5c05eae530 chore(release): prepare v1.16.0 2026-11-18 17:05:31 +08:00
TIANYAO ZHANG c72cd4f233 Merge pull request #185 from jiayuLian/feat/play-url-retry
fix(playback): 播放前重试 + 降音质,不再动不动「无法播放(区域/版权限制)」
2026-11-18 17:04:48 +08:00
TIANYAO ZHANG dc2659628e Merge main into playback retry 2026-11-18 17:02:46 +08:00
TIANYAO ZHANG ad5568187d Merge request log redaction into playback retry 2026-11-18 17:02:45 +08:00
TIANYAO ZHANG cb01cd3049 Merge the reviewed OpenProtocol changes into playback retry 2026-11-18 17:02:45 +08:00
TIANYAO ZHANG db3b6b2f66 Merge pull request #194 from Dr1mH4X/feat/open-protocol
feat: support OpenProtocol
2026-11-18 17:02:20 +08:00
TIANYAO ZHANG d34e249f8a Merge the reviewed music-account changes into playback retry 2026-11-18 17:02:20 +08:00
TIANYAO ZHANG 6546bbd830 Merge pull request #186 from jiayuLian/feat/per-user-music-accounts
feat(music): 每用户音乐账号 + 管理员账号池(个人优先、分配次之、共享兜底)
2026-11-18 17:02:11 +08:00
TIANYAO ZHANG a33fdc1aab Merge pull request #197 from ZHANGTIANYAO1/maint/redact-http-errors
fix(logging): remove request and response data from Axios errors
2026-11-18 17:01:58 +08:00
TIANYAO ZHANG b25cdba161 Merge pull request #196 from ZHANGTIANYAO1/maint/docs-offline-docker-183
docs: explain offline Docker deployment
2026-11-18 17:01:52 +08:00
TIANYAO ZHANG 90a4d80958 fix(playback): cancel stale retries and scope failure messages 2026-11-18 16:57:48 +08:00
TIANYAO ZHANG a47917afb1 Integrate upstream and honor music-account revocations during FM 2026-11-18 16:55:49 +08:00
TIANYAO ZHANG 17b092f2e4 fix(teamspeak): fence chat commands to their connection 2026-11-18 16:53:40 +08:00
TIANYAO ZHANG 0360088710 Merge pull request #182 from jiayuLian/feat/clear-play-history
feat(history): delete single / batch / clear all play history
2026-11-18 16:53:23 +08:00
TIANYAO ZHANG ea05787cb7 Merge remote-tracking branch 'origin/main' into review/185-hardening
# Conflicts:
#	src/music/netease.ts
2026-11-18 16:53:23 +08:00
TIANYAO ZHANG 84e04ee2d2 fix(history): validate selections and follow the active bot 2026-11-18 16:53:13 +08:00
TIANYAO ZHANG 406ecda7d7 fix(playback): keep retry changes independent of proxy settings 2026-11-18 16:52:58 +08:00
TIANYAO ZHANG 4ee1e6f812 fix(logging): omit Axios request and response data 2026-11-18 16:51:43 +08:00
TIANYAO ZHANG 0808cde447 Integrate QQ renewal and enforce music account assignment rules 2026-11-18 16:51:32 +08:00
TIANYAO ZHANG dd8e8c5950 docs: explain offline Docker deployment 2026-11-18 16:50:45 +08:00
TIANYAO ZHANG 2b657ae338 Merge pull request #191 from NoSetViolin/codex/fix-bilibili-189
fix(bilibili): 修复部分 CDN 403 并保留视频分 P 参数
2026-11-18 16:49:28 +08:00
TIANYAO ZHANG 35fa3a95df Merge pull request #188 from NoSetViolin/zty-main-pr
feat(qq): 支持 QQ 音乐登录凭据自动续期
2026-11-18 16:49:20 +08:00
TIANYAO ZHANG 4f026aa65f fix(open-protocol): verify advertised commands and bound replies 2026-11-18 16:47:49 +08:00
TIANYAO ZHANG 568d49f837 Merge pull request #184 from jiayuLian/fix/cookie-normalize
fix(music): cookie 里存的是整条 Set-Cookie,导致 /song/url 一律返回 400
2026-11-18 16:47:31 +08:00
TIANYAO ZHANG f2a72e3162 Merge pull request #178 from zbn297427669/fix/upstream-test-declick-ramp
test: catch bot tests up with the de-click transport ramp
2026-11-18 16:45:49 +08:00
TIANYAO ZHANG 9928035282 Merge cookie normalization into QQ session renewal 2026-11-18 16:43:49 +08:00
TIANYAO ZHANG 79e9cd797c fix(bilibili): read the page query from the pasted video link 2026-11-18 16:40:27 +08:00
TIANYAO ZHANG 51debb915c fix(music): handle multiple cookie headers and invalid saved values 2026-11-18 16:39:42 +08:00
TIANYAO ZHANG 17008ae52e Merge pull request #177 from EvolvedGhost/fix/audio-declick-seek 2026-10-22 09:00:11 +08:00
TIANYAO ZHANG c26998d296 Merge pull request #176 from NoSetViolin/main
整理设置页分类和创建实例布局,增加主题色与跟随系统外观
2026-10-14 18:24:20 +08:00
TIANYAO ZHANG 28c128d0c9 fix: harden long-video recovery and voice transport handling (#161) 2026-10-04 01:27:52 +08:00
TIANYAO ZHANG e5879ea106 docs: describe v1.15.1 playback and privacy fixes 2026-10-03 21:03:06 +08:00
TIANYAO ZHANG 44a1457baa fix: isolate embedded music API credential logs 2026-10-03 21:03:05 +08:00
TIANYAO ZHANG a4c0239a59 fix: drain FFmpeg stderr and sanitize playback diagnostics 2026-10-03 21:03:04 +08:00
TIANYAO ZHANG 5258ba951b chore: prepare v1.15.0 release and exclude generated test copies 2026-10-03 17:25:02 +08:00
TIANYAO ZHANG d16aca2ba6 fix: honor artist shuffle permissions and discard stale page requests 2026-10-03 17:25:01 +08:00
TIANYAO ZHANG 9bcddb1881 fix: preserve pause intent and deduplicate stream recovery lookups 2026-10-03 17:17:53 +08:00
TIANYAO ZHANG cf83916f39 fix: serialize artist playback and keep incomplete QQ catalogs retryable 2026-10-03 17:17:35 +08:00
TIANYAO ZHANG f8b03acca3 fix: fence profile updates and check TeamSpeak permission failures 2026-10-03 17:17:35 +08:00
TIANYAO ZHANG b9c79c8138 fix: revoke API keys on password rotation and audit key owners 2026-10-03 17:17:34 +08:00
TIANYAO ZHANG 79fb8443be fix: fence stream recovery and EOF advancement by playback session 2026-10-03 16:55:34 +08:00
TIANYAO ZHANG c904190912 Merge pull request #170 from ZHANGTIANYAO1/fix/issue-161-bilibili-long-stream
# Conflicts:
#	src/bot/instance.test.ts
2026-10-03 16:50:49 +08:00
TIANYAO ZHANG 41b81a6193 Merge pull request #175 from zzstar101/feat/artist-search 2026-10-03 16:50:09 +08:00
TIANYAO ZHANG f495ca0ff4 Merge pull request #174 from razaxq/main 2026-10-03 16:50:09 +08:00
TIANYAO ZHANG bdb33df89d Merge pull request #173 from senlinjun/feat/restapi 2026-10-03 16:50:09 +08:00
TIANYAO ZHANG 3423bf502c docs: plan reviewed PR fixes and release validation 2026-10-03 16:50:08 +08:00
TIANYAO ZHANGandClaude Opus 5.5 87fca6d8b7 docs: add v1.14.0 changelog entry
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-27 23:46:18 +08:00
TIANYAO ZHANG c7b1268281 Merge pull request #172 from ZHANGTIANYAO1/fix/issue-165-install-scripts
fix(install): bring install.sh up to Node 22 and document both Linux scripts (#165)
2026-09-27 23:44:44 +08:00
TIANYAO ZHANG b942a4726e Merge pull request #171 from ZHANGTIANYAO1/feat/issue-164-personal-netease-fm
feat(fm): let each web user link their own NetEase account for personal FM (#164)
2026-09-27 23:44:35 +08:00
TIANYAO ZHANG ad728a3a04 Merge pull request #169 from ZHANGTIANYAO1/feat/issue-160-playlist-link
feat(playlist): load a playlist straight from its link (#160)
2026-09-27 23:44:28 +08:00
TIANYAO ZHANG c51d311ab6 Merge pull request #168 from ZHANGTIANYAO1/fix/issue-159-channel-desc-on-move
fix(profile): move the now-playing channel description with the bot (#159)
2026-09-27 23:44:20 +08:00
TIANYAO ZHANGandClaude Opus 5.5 ac4a12d8bd feat(fm): let each web user link their own NetEase account for personal FM (#164)
With several people sharing one bot, personal FM always followed the one
account the bot was logged in with. Each signed-in (non-guest) web user
can now scan a QR code under Settings → 账户 to link their own NetEase
account; FM they start from the WebUI then comes from their account.

- user_music_cookies table (per user + platform, dropped with the user).
- NeteaseProvider.pollQrLogin returns the cookie without storing it, so
  a personal login can never replace the bot's shared account;
  checkQrCodeStatus is now built on it. withCookie gives a view bound to
  another account.
- /api/me/music/netease: status / qrcode / qrcode/status / unlink, acting
  only on req.user. The cookie never leaves the server.
- POST /api/player/:botId/fm uses the caller's linked account for
  NetEase. Songs still resolve through the shared provider when played.

TeamSpeak chat !fm keeps using the shared account: chat users are not
tied to web accounts.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-27 22:02:31 +08:00
TIANYAO ZHANGandClaude Opus 5.5 07ad861ecf fix(bilibili): keep long videos playing when the CDN drops the stream (#161)
Long B站 videos (2-3 h) still stopped ~15-20 min in, the same symptom as
#89. Reconnecting to the same URL is not enough once the CDN session is
gone, so:

- Prefer an upos/cos mirror from baseUrl + backupUrl over PCDN hosts
  (*.mcdn.bilivideo.cn, *.szbdyd.com), which are the ones that cut off.
- When a B站 track ends more than 30 s before its known duration, fetch
  a fresh URL and resume at the current position instead of advancing.
  Up to 3 attempts without real progress, then advance as before; a
  track the user started meanwhile is never clobbered.
- Seek B站 URLs input-side (-ss before -i). Their CDN serves Range, so a
  resume jumps to the byte offset instead of re-downloading everything
  before it (measured locally: 0.2 s vs a full-file download at 1.5 h
  into a 2 h fMP4), which would otherwise trip the 60 s stall watchdog.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-27 21:52:47 +08:00
TIANYAO ZHANGandClaude Opus 5.5 88e6b5a691 fix(install): bring install.sh up to Node 22 and document both Linux scripts (#165)
install.sh still installed Node 20 (dropped in #152), ran the Debian-only
NodeSource script on yum systems, and hard-coded /usr/bin/node. The
README only mentioned install.sh, not setup.sh.

install.sh now:
- installs Node 22 LTS from the right NodeSource repo per distro and
  checks the same 22.12+/24+ floor as setup.sh
- delegates npm install, mirror detection, native-binary checks and the
  build to setup.sh, so the two scripts share one install path
- stops the service and replaces dist/node_modules on re-install (data/
  is kept), copies bin/ (yt-dlp), and uses the real node path in the unit

README explains the difference between the two scripts and when to use
which. setup.sh's "Node.js not found" message no longer says 20+.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-27 21:42:59 +08:00
TIANYAO ZHANGandClaude Opus 5.5 6b82df4e50 feat(playlist): load a playlist straight from its link (#160)
`!playlist` already pulled a numeric id out of a URL, but the platform
still came from flags, so a QQ link without -q was looked up on NetEase,
and a YouTube ?list= link fell through to a name search on the URL.

- Detect NetEase / QQ Music / YouTube playlist links (also inside an
  app's share text and the [URL] BBCode TeamSpeak adds) and take the
  platform from the link.
- Follow NetEase (163cn.tv) and QQ (c6.y.qq.com/base/fcgi-bin/u) share
  short links one hop. Only those hosts are fetched.
- Document it in the README command table.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-27 21:41:05 +08:00
TIANYAO ZHANGandClaude Opus 5.5 faf6ac09ec fix(profile): move the now-playing channel description with the bot (#159)
When the bot was moved to another channel, the channel it left kept the
now-playing description forever: updateChannelDescription always targeted
getChannelId(), which by then already reported the new channel.

Remember which channel we last wrote to. On a self clientMoved event,
clear that channel and, if a song is playing, write the description to
the new one. Stop now clears the channel we actually wrote to, so a
missed move event can't leave a stale description behind either.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-27 21:36:57 +08:00
TIANYAO ZHANG 8ff51ea6e0 Merge pull request #166 from xxmod/main
fix(bilibili): 修复了B站分P视频播放时只能播放第一P,且时长显示为视频总时长
2026-09-27 21:12:25 +08:00
TIANYAO ZHANG 2ea02f54d9 Merge pull request #155 from ZHANGTIANYAO1/fix/152-setup-console-eio
fix(setup): stop a failed console write from aborting setup, require Node 22+ (#152)
2026-08-31 16:22:36 +08:00
TIANYAO ZHANG 1407cadf7b Merge pull request #154 from XuVIIJay/fix/output-side-seek
fix(audio): 网易云拖动进度条播放中断,改用输出侧 seek 兼容不支持 Range 的 CDN
2026-08-24 11:19:37 +08:00
TIANYAO ZHANG ea0d7abce3 Merge pull request #151 from ZHANGTIANYAO1/feat/local-video-playback
feat(local): 支持上传并播放本地视频文件(只保留音轨)
2026-08-14 01:23:02 +08:00
TIANYAO ZHANG c7b577adba Merge pull request #150 from ZHANGTIANYAO1/fix/avatar-upload-before-connect
fix(avatar): 初始化阶段不再发起注定失败的头像上传
2026-08-14 01:22:58 +08:00
TIANYAO ZHANG 990edd1bb0 Merge pull request #147 from ZHANGTIANYAO1/fix/native-module-abi-setup
fix(setup): 按 Node ABI 校验并自动修复原生模块
2026-08-09 15:22:44 +08:00
TIANYAO ZHANG e39ce590c1 Merge pull request #146 from ZHANGTIANYAO1/fix/webui-icons-and-mobile-ux
WebUI:站点图标、移动端交互与扫码文案
2026-08-09 15:22:40 +08:00
TIANYAO ZHANG e027ee3d02 Merge pull request #145 from ZHANGTIANYAO1/fix/play-id-command-syntax
feat(bot): !play id <id> 与其他命令语法保持一致
2026-08-09 15:22:36 +08:00
TIANYAO ZHANG 06d29ba306 Merge pull request #144 from ZHANGTIANYAO1/fix/playnext-in-random-mode
fix(queue): 随机模式下 !pn 插入的歌真正下一首播放
2026-08-09 15:22:32 +08:00
TIANYAO ZHANG 4e4354282d Merge pull request #137 from ZHANGTIANYAO1/codex/voice-ducking
feat: add configurable voice ducking
2026-07-21 22:07:36 +08:00
TIANYAO ZHANG 7805f52151 Merge pull request #135 from EvolvedGhost/fix/drop-self-echoed-text-messages
fix(ts-protocol): drop self-echoed text messages
2026-07-18 12:24:16 +08:00
TIANYAO ZHANG 0ad00cd7f7 Merge pull request #133 from ZHANGTIANYAO1/feat/issue-119-saved-playlists
feat: save/load playlists, restart queue persistence, and playKeepsQueue (#119)
2026-07-17 11:09:23 +08:00
TIANYAO ZHANG 880a9c084e Merge pull request #131 from ZHANGTIANYAO1/feat/issue-126-default-source
feat: add configurable default music source (#126)
2026-07-17 11:05:16 +08:00
TIANYAO ZHANG 72682f4308 Merge pull request #130 from ZHANGTIANYAO1/feat/issue-125-persist-settings
feat: persist volume, play mode and audio quality across restarts
2026-07-17 11:03:22 +08:00
TIANYAO ZHANG f1585b010d Merge pull request #134 from ZHANGTIANYAO1/fix/issue-128-noindex-webui
feat(web): keep deployed WebUI out of search-engine indexes
2026-07-17 11:02:49 +08:00
TIANYAO ZHANG 1f88220d01 Merge pull request #129 from ZHANGTIANYAO1/fix/issue-122-qq-api-port
fix(qq): pin QQ Music API sidecar to configured qqMusicApiPort
2026-07-17 11:02:46 +08:00
TIANYAO ZHANG 75e3b1c722 Merge pull request #132 from ZHANGTIANYAO1/chore/issue-127-gitignore-claude
chore: add .claude/ to gitignore and untrack committed settings
2026-07-17 11:02:43 +08:00
TIANYAO ZHANG 3841fa80d3 Update README.md 2026-07-14 00:20:48 +08:00
TIANYAO ZHANG 04ceac5a97 Merge pull request #123 from ItsEricRao/main
Jellyfin Integration. Assisted by Claude Fable 5.
2026-07-14 00:18:29 +08:00
TIANYAO ZHANG ada292574f Merge pull request #124 from Slldyd2077/fix/qq-song-detail-empty-name
fix(qq): 按 ID 播放时回填歌曲元数据,修复 TS 显示空歌名
2026-07-14 00:17:08 +08:00
TIANYAO ZHANG f8743a904f Merge pull request #114 from ZHANGTIANYAO1/fix/qq-api-version-pin
fix(qq): 锁定 @sansenjian/qq-music-api 到 ~2.4.0 并加固启动报错
2026-06-30 23:26:28 +08:00
TIANYAO ZHANG de4343cfbb Merge pull request #113 from ZHANGTIANYAO1/docs/kugou-readme
docs: 在 README 中补充酷狗音乐音源与登录功能
2026-06-30 21:36:34 +08:00
TIANYAO ZHANG e1439a5899 Merge pull request #110 from ZHANGTIANYAO1/feat/kugou-provider
feat: 增加酷狗音乐 (Kugou) 音源支持 (closes #69)
2026-06-30 21:15:12 +08:00