From 08e95611eaabaca14653aca9f81207360ce3682f Mon Sep 17 00:00:00 2001 From: buvta <12312540+buvta@users.noreply.github.com> Date: Thu, 12 Nov 2020 12:09:58 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=A2=91=E9=81=93=E5=BD=93?= =?UTF-8?q?=E5=89=8D=E6=BA=90=E8=A2=AB=E5=8C=85=E5=90=AB=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Play.vue | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/components/Play.vue b/src/components/Play.vue index 863567b..99282b3 100644 --- a/src/components/Play.vue +++ b/src/components/Play.vue @@ -1114,7 +1114,6 @@ export default { this.iptvList = res.filter(e => e.isActive) this.right.otherChannels = [] const iptvList = JSON.parse(JSON.stringify(this.iptvList)) - const index = this.video.iptv.id - 1 var currentChannelName = this.video.iptv.name.trim().replace(/[- ]?(1080p|蓝光|超清|高清|标清|hd|cq|4k)(\d{1,2})?/i, '') if (currentChannelName.match(/cctv/i)) currentChannelName = currentChannelName.replace('-', '') const matchRule = new RegExp(`${currentChannelName}(1080p|4k|(?!\\d))`, 'i') @@ -1122,7 +1121,7 @@ export default { if (iptvList[i].name.match(/cctv/i)) { iptvList[i].name = iptvList[i].name.replace('-', '') } - if (matchRule.test(iptvList[i].name) && i !== index) { + if (matchRule.test(iptvList[i].name) && iptvList[i].id !== this.video.iptv.id) { this.right.otherChannels.push(this.iptvList[i]) } }