From 43d34982f04eb4996c7ae47e66fb651a5106cd6e Mon Sep 17 00:00:00 2001 From: dom Date: Wed, 20 May 2026 18:39:11 +0800 Subject: [PATCH] handle subtitle Signed-off-by: dom --- lib/pages/video/controller.dart | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/pages/video/controller.dart b/lib/pages/video/controller.dart index fef9354f2..1254b2edc 100644 --- a/lib/pages/video/controller.dart +++ b/lib/pages/video/controller.dart @@ -1123,6 +1123,12 @@ class VideoDetailController extends GetxController }).toList(); } catch (_) {} } + + final subs = response.subtitle?.subtitles; + if (subs != null && subs.isNotEmpty) { + subtitles.value = subs; + vttSubtitlesIndex.value = 0; + } } }