handle subtitle

Signed-off-by: dom <githubaccount56556@proton.me>
This commit is contained in:
dom
2026-05-20 18:39:11 +08:00
parent 7121376d50
commit 43d34982f0

View File

@@ -1123,6 +1123,12 @@ class VideoDetailController extends GetxController
}).toList(); }).toList();
} catch (_) {} } catch (_) {}
} }
final subs = response.subtitle?.subtitles;
if (subs != null && subs.isNotEmpty) {
subtitles.value = subs;
vttSubtitlesIndex.value = 0;
}
} }
} }