feat: add RecordingsTab widget with EPG guide and channel navigation for IPTV playlists

This commit is contained in:
Michael committed 2026-04-01 20:58:42 +02:00
1 parent 6efdadd6fd
commit 5e7e86e4d8
1 file changed
+3 -2
@@ -746,7 +746,8 @@ class _RecordingsListViewState extends State<_RecordingsListView> {
final response = await http.get(Uri.parse('/api/recordings')); final response = await http.get(Uri.parse('/api/recordings'));
if (response.statusCode == 200) { if (response.statusCode == 200) {
setState(() { setState(() {
_recordings = json.decode(response.body); final decoded = json.decode(response.body);
_recordings = decoded is List ? decoded : [];
_isLoading = false; _isLoading = false;
}); });
} else { } else {
@@ -895,7 +896,7 @@ class _RecordingsListViewState extends State<_RecordingsListView> {
: _error != null : _error != null
? Center( ? Center(
child: Text( child: Text(
_error!, _error ?? 'Erreur',
style: const TextStyle(color: Colors.redAccent), style: const TextStyle(color: Colors.redAccent),
), ),
) )