mirror of
https://github.com/R0m1k3/xtremflow.git
synced 2026-10-23 15:08:07 +02:00
Multi-IPTV : déclarer l'IPTV active de façon synchrone dans AuthedHttp
AuthedHttp lisait l'IPTV dans localStorage, écrit par un écouteur Riverpod enregistré tardivement : après un changement d'IPTV l'en-tête X-Playlist-Id pouvait rester périmé. AuthedHttp.usePlaylist pose l'IPTV en mémoire dès la sélection et à chaque construction du tableau de bord. Auto NBA reçoit la playlist, recharge sa règle quand elle change et nomme l'IPTV sur laquelle les matchs sont enregistrés. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
a6322b57b8
commit
6368fd6ee2
6 files changed
+58
-7
No files matched your search
@@ -3,6 +3,7 @@ import 'package:flutter_riverpod/flutter_riverpod.dart';
|
||||
import 'package:go_router/go_router.dart';
|
||||
import 'package:google_fonts/google_fonts.dart';
|
||||
import '../../../core/services/playlist_api_service.dart';
|
||||
import '../../../core/api/authed_http.dart';
|
||||
import '../../../core/models/playlist_config.dart';
|
||||
import '../../../core/theme/app_colors.dart';
|
||||
import '../../../core/theme/app_theme.dart';
|
||||
@@ -163,6 +164,10 @@ class PlaylistSelectionScreen extends ConsumerWidget {
|
||||
child: _PlaylistCard(
|
||||
playlist: playlist,
|
||||
onTap: () {
|
||||
AuthedHttp.usePlaylist(
|
||||
playlist.id,
|
||||
json: playlist.toJson(),
|
||||
);
|
||||
selectPlaylist(ref, playlist);
|
||||
context.go('/dashboard');
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user