feat: implement initial mobile IPTV feature with player screen, live TV, movies, and series tabs, along with the Xtream API service.

This commit is contained in:
Michael committed 2026-03-09 13:16:29 +01:00
1 parent b1f887af69
commit 829c5751ca
6 files changed
+112 -80

No files matched your search

@@ -53,7 +53,7 @@ class _MobileLiveTVTabState extends ConsumerState<MobileLiveTVTab> {
.where((cat) => settings.matchesLiveTvFilter(cat))
.toList();
}
categories.sort();
// REMOVED alphabetic sort to respect server/settings order
List<Channel> displayedChannels = [];
if (_searchQuery.isNotEmpty) {
@@ -70,6 +70,12 @@ class _MobileLiveTVTabState extends ConsumerState<MobileLiveTVTab> {
if (_selectedCategory == null && categories.isNotEmpty) {
_selectedCategory = categories.first;
}
// If the selected category is no longer available (due to filters), reset it
if (_selectedCategory != null &&
!categories.contains(_selectedCategory)) {
_selectedCategory =
categories.isNotEmpty ? categories.first : null;
}
if (_selectedCategory != null) {
displayedChannels = groupedChannels[_selectedCategory] ?? [];
}