From 129bcadd37e18fbb98b87727d0f7b5163748da08 Mon Sep 17 00:00:00 2001 From: R0m1k3 Date: Tue, 10 Mar 2026 12:00:43 +0100 Subject: [PATCH] feat: Add Xtream API service for IPTV features and precache web artifacts in Dockerfile. --- Dockerfile | 4 ++-- lib/features/iptv/services/xtream_service.dart | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index d92d367..118e350 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,8 +8,8 @@ WORKDIR /app ENV DART_VM_OPTIONS="--old_gen_heap_size=16384" ENV FLUTTER_NO_ANALYTICS=1 -# Enable web support -RUN flutter config --enable-web +# Enable web support and pre-download artifacts +RUN flutter config --enable-web && flutter precache --web # Copy dependency files first COPY pubspec.yaml ./ diff --git a/lib/features/iptv/services/xtream_service.dart b/lib/features/iptv/services/xtream_service.dart index d651eef..99e988a 100644 --- a/lib/features/iptv/services/xtream_service.dart +++ b/lib/features/iptv/services/xtream_service.dart @@ -291,7 +291,7 @@ class XtreamService { 'password': _currentPlaylist!.password, 'action': 'get_series_categories', }, - options: Options(extra: options), + options: Options(extra: _cacheOptions.toExtra()), ); final List categories = response.data as List;