strev 0.4.0
Strev is the CLI for extracting stream URLs and metadata from live-streaming platforms.
Changed
- Douyu uses the Android App API by default (#1031). Choose the method with
--extras '{"api_mode":"web"}'; the Web method is deprecated but still available, and audio-only extraction (only_audio) keeps using it. App extraction also takesrate,cdn,codec(avcorhevc, falling back to AVC) and device options (device_name,os_version,device_id_mode). Without signed-in cookies, App usually stays at 超清 in rooms with several qualities, while Web can return a higher quality whose address expires after about five minutes.
Added
- Signed-in Douyu cookies unlock the original quality with both methods (#1070). App extraction sends the login token built from the main-site cookies
acf_uid,acf_biz,acf_stk,acf_ctandacf_ltkid. Signed-in Web extraction no longer fails with403 鉴权失败, and Web streams report the quality Douyu actually served rather than the one requested. - TikTok extraction without request signatures (#953). Rooms resolve through TikTok's room API and fall back to the live page;
api_mode(auto,weborhtml) forces one path. Streams report AVC/HEVC codec, quality, resolution and audio-only,force_origin_qualityis honoured, and extras include the numericroom_id. - Twitch tokens are checked (#1057). A token Twitch no longer accepts is reported as invalid credentials instead of an unrelated error. The browser's
auth-tokencookie works as a token, and tokens copied with theoauth:prefix are accepted.
Fixed
- RedBook live rooms are found again (#1030). Rooms that were reported offline now resolve, including current
xhslink.com/o/share links and redirected room paths. Cookies are optional; if given, they must includea1. - Ended broadcasts are no longer reported as live on Douyin, which kept returning replay streams after a broadcast ended (#986), and on PandaTV, which marked recorded broadcasts as live (#1032).
- Bigo live rooms no longer read as offline on most checks (#750). Bigo accepts each integrity token only once, so every check now gets its own.
- Huya's desktop user agent is refreshed, and a stale Douyin cookie is no longer sent.
Library changes
- Danmu: a new TikTok provider over the webcast WebSocket, needing only an automatically registered
ttwid(#953); BilibiliSEND_GIFT_V2gift batches are decoded (#1028); Douyin chat metadata no longer overflows small thread stacks (#1037); the chat XML writer keeps its output valid (#874), and danmu statistics and reconnection were reworked (#776). - Account support for multi-account callers (#1057): a
proxymodule with per-endpoint proxy logins, Douyu passport QR login and session renewal, and Twitch token validation. - Unused public paths were removed (#948).
Full Changelog: strev-v0.3.1...strev-v0.4.0