feat(models): capture account country and language on login

parse_login_response now reads user.country_code and user.language_code
(snake_case wire names, verified against Qobuz's own embedded login
fixture) into two new serde-defaulted Option fields on UserSession, so
pre-v10 persisted sessions still load with both as None (translation
stays Auto-off). qbzd's test construction updated for the new fields.

km
This commit is contained in:
vicrodh committed 2026-07-22 19:11:52 -06:00
1 parent 072223078e
commit 8c2dfd5727
3 files changed
+105

No files matched your search

+2
View File
@@ -988,6 +988,8 @@ mod tests {
display_name: "Tester".into(),
subscription_label: "studio".into(),
subscription_valid_until: None,
country_code: None,
language_code: None,
};
set_logged_in(&shared, &session);
let s = shared.lock().unwrap();