From 516b79171921bc11ddda5d5ca09805d1a66f007d Mon Sep 17 00:00:00 2001 From: buvta <12312540+buvta@users.noreply.github.com> Date: Mon, 18 Jan 2021 18:38:21 +0800 Subject: [PATCH] =?UTF-8?q?=E5=86=8D=E6=AC=A1=E8=B0=83=E6=95=B4=E7=9B=B4?= =?UTF-8?q?=E6=92=AD=E6=BA=90=E6=A3=80=E6=B5=8B=E8=B7=B3=E8=BF=87=E5=8A=9F?= =?UTF-8?q?=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/IPTV.vue | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/components/IPTV.vue b/src/components/IPTV.vue index 53084a3..10bc9ba 100644 --- a/src/components/IPTV.vue +++ b/src/components/IPTV.vue @@ -598,11 +598,15 @@ export default { this.checkProgress += 1 return } - channel.status = ' ' const ele = this.channelList.find(e => e.id === channel.channelID) if (!force && this.setting.allowPassWhenIptvCheck && (!channel.isActive || !ele.isActive)) { - channel.status = '跳过' + if (!ele.isActive) { + ele.status = '跳过' + } else if (!channel.isActive) { + channel.status = '跳过' + } } else { + channel.status = ' ' const flag = await zy.checkChannel(channel.url) if (flag) { channel.status = '可用' @@ -618,9 +622,7 @@ export default { this.checkProgress += 1 ele.hasCheckedNum++ if (ele.hasCheckedNum === ele.channels.length) { - if (!force && this.setting.allowPassWhenIptvCheck && !ele.isActive) { - ele.status = '跳过' - } else { + if (ele.status === ' ') { ele.status = ele.channels.some(channel => channel.status === '可用') ? '可用' : '失效' if (ele.status === '失效') ele.isActive = false }