feat: Implement initial Xtream IPTV features including API service, models, and UI for live TV, movies, series, and settings.

This commit is contained in:
Michael committed 2025-12-06 12:45:43 +01:00
1 parent 8d86891794
commit e3c3fad058
8 files changed
+726 -63

No files matched your search

@@ -399,6 +399,28 @@ class XtreamService {
}
}
/// Get series info with seasons and episodes
Future<xm.SeriesInfo> getSeriesInfo(String seriesId) async {
if (_currentPlaylist == null) throw Exception('No playlist configured');
try {
final response = await _dio.get(
_wrapWithProxy(_currentPlaylist!.apiBaseUrl),
queryParameters: {
'username': _currentPlaylist!.username,
'password': _currentPlaylist!.password,
'action': 'get_series_info',
'series_id': seriesId,
},
options: Options(extra: _cacheOptions.toExtra()),
);
return xm.SeriesInfo.fromJson(response.data as Map<String, dynamic>);
} catch (e) {
throw Exception('Failed to fetch series info: $e');
}
}
/// Get short EPG for a specific stream
///
/// Returns "Now" and "Next" program info