Initial upload: iptv-android-tv-hermes

This commit is contained in:
Abderrahim-Mouhcine
2026-08-16 19:57:53 +01:00
commit 534d462553
222 changed files with 22516 additions and 0 deletions
+30
View File
@@ -0,0 +1,30 @@
# Fix V22 - Auth response parsing
Base: V21 login-server-fix.
Problem:
- The app reached the Xtream server, but showed "Identifiants invalides ou serveur incorrect".
- Many Xtream servers return auth/status inside `user_info`, for example:
`{"user_info":{"auth":1,"status":"Active"}, ...}`
- The previous login logic checked `auth` at the root level, which is often absent.
- Result: false invalid-login message even when credentials are correct.
Fix:
- AuthRepository now reads:
- `response.userInfo.auth` first
- fallback to root `response.auth`
- `response.userInfo.status` first
- fallback to root `response.status`
- It accepts `auth = 1` and `auth = true`.
- It keeps the V21 temporary server save fix.
- It restores previous config on failed login.
Scope:
- Only AuthRepository.kt and version number are changed.
- Login input dialog/focus from V19/V20 stays.
- Server URL normalization from V21 stays.
- No changes to LIVE, replay, player, search, YouTube, recent LIVE, continue watching, or home scroll.
Version:
- versionCode = 22
- versionName = 2.0.22-auth-response-fix