[feat] Video system optimization2

This commit is contained in:
acite
2025-09-20 03:18:25 +08:00
parent 947ffc4599
commit 55ea2e1ae3
4 changed files with 245 additions and 39 deletions

View File

@@ -28,6 +28,13 @@ class Video(
"${ApiClient.getBase()}api/video/$klass/$id/av?token=$token"
}
fun getSubtitle(): String {
return if (isLocal)
"$localBase/videos/$klass/$id/subtitle.ass"
else
"${ApiClient.getBase()}api/video/$klass/$id/subtitle?token=$token"
}
fun getGallery(): List<KeyImage> {
return if (isLocal)
video.gallery.map {