Fix:移除TVList的初始化

This commit is contained in:
LeGend-wLw 2024-02-04 23:48:03 +08:00
parent 825a872a09
commit 700c8b4c04
1 changed files with 1 additions and 3 deletions

View File

@ -95,8 +95,6 @@ class Request {
fun initYSP(context: Context) { fun initYSP(context: Context) {
ysp = YSP(context) ysp = YSP(context)
//TODO 不确定在哪里初始化
TVList.init(context)
} }
var call: Call<LiveInfo>? = null var call: Call<LiveInfo>? = null
@ -369,7 +367,7 @@ class Request {
continue continue
} }
val tv = val tv =
TVList.list[channelType]?.find { it.title == mapping[item.channelName] } TVList.list?.get(channelType)?.find { it.title == mapping[item.channelName] }
if (tv != null) { if (tv != null) {
tv.logo = item.tvLogo tv.logo = item.tvLogo
tv.pid = item.pid tv.pid = item.pid