mirror of
https://github.com/R0m1k3/xtremflow.git
synced 2026-10-21 22:18:04 +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'));
|
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),
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in new issue
Block a user