From a746fe6c656246f343f67b8698e703ec9654e4ab Mon Sep 17 00:00:00 2001 From: LeGend-wLw <874644990@qq.com> Date: Sun, 4 Feb 2024 23:58:11 +0800 Subject: [PATCH] =?UTF-8?q?=20Add:=E6=B7=BB=E5=8A=A0log=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/main/java/com/lizongying/mytv/TVList.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/com/lizongying/mytv/TVList.kt b/app/src/main/java/com/lizongying/mytv/TVList.kt index dc6dba9..39e131d 100644 --- a/app/src/main/java/com/lizongying/mytv/TVList.kt +++ b/app/src/main/java/com/lizongying/mytv/TVList.kt @@ -6,6 +6,7 @@ import kotlinx.coroutines.CoroutineScope import kotlinx.coroutines.Dispatchers import kotlinx.coroutines.launch import java.io.IOException +import kotlin.math.log object TVList { @Volatile @@ -45,7 +46,7 @@ object TVList { val url = ChannelUtils.getServerUrl(context) //是否从服务器更新 updateFromServer = true - + Log.i("TVList", "从服务器获取频道信息") try { ChannelUtils.getServerChannel(url) } catch (e: IOException) { @@ -54,6 +55,7 @@ object TVList { ChannelUtils.getLocalChannel(context) } } else { + Log.i("TVList", "从本地获取频道信息") //获取本地频道 ChannelUtils.getLocalChannel(context) }