mirror of
https://github.com/R0m1k3/xtremflow.git
synced 2026-10-11 17:30:00 +02:00
feat: add RecordingsTab widget with EPG guide and channel navigation for IPTV playlists
This commit is contained in:
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'));
|
||||
if (response.statusCode == 200) {
|
||||
setState(() {
|
||||
_recordings = json.decode(response.body);
|
||||
final decoded = json.decode(response.body);
|
||||
_recordings = decoded is List ? decoded : [];
|
||||
_isLoading = false;
|
||||
});
|
||||
} else {
|
||||
@@ -895,7 +896,7 @@ class _RecordingsListViewState extends State<_RecordingsListView> {
|
||||
: _error != null
|
||||
? Center(
|
||||
child: Text(
|
||||
_error!,
|
||||
_error ?? 'Erreur',
|
||||
style: const TextStyle(color: Colors.redAccent),
|
||||
),
|
||||
)
|
||||
|
||||
Reference in new issue
Block a user