Summary
QQ Music's WeChat sign-in sets wxuin instead of uin, so a web sign-in that waits for uin never completes. A source can now list alternatives in cookie_names, and the WeChat login frame can load inside the sign-in window.
Changes
authentication.cookie_namesentries may be a name or an array of alternative names, for example[["uin","wxuin"],"qm_keyst"]. Sign-in completes when every entry has at least one of its names. Names are validated the same way as before.- Contract:
streaming-source-protocol.mddocuments alternatives, says hosts before 0.21.0 accept only names (packages using alternatives must setminimum_host_versionto 0.21.0 or later), and thatnavigation_originsalso cover embedded frames such asopen.weixin.qq.com.
Test plan
-
cargo test --release --lib: newcookie_names_accept_names_and_groups_of_alternativesandweb_sign_in_waits_for_one_name_from_every_entry -
cargo clippy: clean - Release app: signed in to QQ Music with WeChat quick login; the window closed on its own, the source showed signed in, playlists and search loaded (QQ Music source 1.0.1 from thedavidweng/openkara-sources, local registry)
- Frontend: no changes