mirror of
https://github.com/lizongying/my-tv.git
synced 2026-11-02 17:46:35 +08:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
dc5f988baa | ||
|
|
b0083722ce |
@@ -6,6 +6,8 @@
|
|||||||
|
|
||||||
下载安装[releases](https://github.com/lizongying/my-tv/releases)
|
下载安装[releases](https://github.com/lizongying/my-tv/releases)
|
||||||
|
|
||||||
|
[my-tv](https://lyrics.run/my-tv.html)
|
||||||
|
|
||||||

|

|
||||||

|

|
||||||
|
|
||||||
|
|||||||
+4
-3
@@ -90,11 +90,12 @@ if (IS_SO_BUILD)
|
|||||||
native-lib
|
native-lib
|
||||||
libssl
|
libssl
|
||||||
libcrypto
|
libcrypto
|
||||||
|
|
||||||
# Links the log library to the target library.
|
|
||||||
${log-lib})
|
${log-lib})
|
||||||
else ()
|
else ()
|
||||||
target_link_libraries( # Specifies the target library.
|
target_link_libraries( # Specifies the target library.
|
||||||
nothing
|
nothing
|
||||||
native-lib)
|
libssl
|
||||||
|
libcrypto
|
||||||
|
native-lib
|
||||||
|
${log-lib})
|
||||||
endif ()
|
endif ()
|
||||||
@@ -55,7 +55,6 @@ class CardPresenter(
|
|||||||
cardView.titleText = tv.title
|
cardView.titleText = tv.title
|
||||||
cardView.setMainImageDimensions(CARD_WIDTH, CARD_HEIGHT)
|
cardView.setMainImageDimensions(CARD_WIDTH, CARD_HEIGHT)
|
||||||
cardView.tag = tv.videoUrl
|
cardView.tag = tv.videoUrl
|
||||||
Log.i(TAG, "bind ${tv.videoUrl}")
|
|
||||||
|
|
||||||
// lifecycleScope.launch(Dispatchers.IO) {
|
// lifecycleScope.launch(Dispatchers.IO) {
|
||||||
// val videoThumbnail = tv.videoUrl?.let { getVideoThumbnail(it) }
|
// val videoThumbnail = tv.videoUrl?.let { getVideoThumbnail(it) }
|
||||||
|
|||||||
@@ -102,7 +102,6 @@ class MainFragment : BrowseSupportFragment() {
|
|||||||
)
|
)
|
||||||
listRowAdapter.add(v1)
|
listRowAdapter.add(v1)
|
||||||
idx2++
|
idx2++
|
||||||
|
|
||||||
tvListViewModel.addTV(v1)
|
tvListViewModel.addTV(v1)
|
||||||
}
|
}
|
||||||
val header = HeaderItem(idx, k)
|
val header = HeaderItem(idx, k)
|
||||||
|
|||||||
@@ -71,12 +71,15 @@ class TVViewModel(private var tv: TV) : ViewModel() {
|
|||||||
val backgroundImage: LiveData<String>
|
val backgroundImage: LiveData<String>
|
||||||
get() = _backgroundImage
|
get() = _backgroundImage
|
||||||
|
|
||||||
// 方法用于更新背景图信息
|
fun getBackgroundImage(): String {
|
||||||
|
return tv.logo ?: ""
|
||||||
|
}
|
||||||
|
|
||||||
fun updateBackgroundImage(url: String) {
|
fun updateBackgroundImage(url: String) {
|
||||||
_backgroundImage.value = url
|
_backgroundImage.value = url
|
||||||
}
|
}
|
||||||
|
|
||||||
fun updateVideoUrl(url: String) {
|
private fun updateVideoUrl(url: String) {
|
||||||
tv.videoUrl = listOf(url)
|
tv.videoUrl = listOf(url)
|
||||||
tv.videoIndex = 0
|
tv.videoIndex = 0
|
||||||
_videoUrl.value = listOf(url)
|
_videoUrl.value = listOf(url)
|
||||||
@@ -106,10 +109,9 @@ class TVViewModel(private var tv: TV) : ViewModel() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fun ysp(): String? {
|
fun ysp(): String? {
|
||||||
|
if (tv.pid == "") {
|
||||||
|
return null
|
||||||
|
}
|
||||||
return mapping[tv.title]
|
return mapping[tv.title]
|
||||||
}
|
}
|
||||||
|
|
||||||
fun getBackgroundImage(): String {
|
|
||||||
return tv.logo ?: ""
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user