[update] ui patch 2

This commit is contained in:
rootacite
2025-11-01 21:53:20 +08:00
parent 512da7be1c
commit 78d6564964
6 changed files with 436 additions and 334 deletions

View File

@@ -13,6 +13,12 @@ class Video(
val id: String,
val video: VideoResponse
) {
companion object {
fun getCoverStatic(api: ApiClient, klass: String, id: String): String
{
return "${api.getBase()}api/video/$klass/$id/cover"
}
}
fun getCover(api: ApiClient): String {
return if (isLocal)
"$localBase/videos/$klass/$id/cover.jpg"