mirror of
https://github.com/ZHANGTIANYAO1/teamspeak-music-bot.git
synced 2026-10-01 20:42:50 +08:00
Closes #64. Bilibili moved the unsigned /x/web-interface/search/type endpoint behind their anti-bot wall; it now returns an HTML error page (出错啦!) even with buvid3+buvid4 cookies, causing `play -b` to report "No results found". Switch search() to /x/web-interface/wbi/search/type with proper wbi signing: fetch img_key/sub_key from /nav, derive the mixin key via the standard permutation, and sign each request with wts + w_rid (md5). Keys are cached for 6h since they rotate ~daily. Other endpoints (view, playurl, popular, top/rcmd) still work unsigned and are left unchanged. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>