From 97aea7b98dd3f2424701bd668e6d8a53e68c77bb Mon Sep 17 00:00:00 2001 From: buvta <12312540+buvta@users.noreply.github.com> Date: Tue, 19 Jan 2021 16:21:06 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=9B=A0=E5=88=86=E9=9A=94?= =?UTF-8?q?=E7=AC=A6"$"=E6=94=B9=E5=8A=A8=E5=BC=95=E5=85=A5=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Play.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Play.vue b/src/components/Play.vue index 6a6613f..dedd6ae 100644 --- a/src/components/Play.vue +++ b/src/components/Play.vue @@ -641,7 +641,7 @@ export default { } this.right.list = playlist const url = playlist[index].includes('$') ? playlist[index].split('$')[1] : playlist[index] - if (playlist.every(e => e.endsWith('.m3u8') || e.split('$')[1].endsWith('.m3u8'))) this.exportablePlaylist = true + if (playlist.every(e => e.includes('$') ? e.split('$')[1].endsWith('.m3u8') : e.endsWith('.m3u8'))) this.exportablePlaylist = true if (!url.endsWith('.m3u8') && !url.endsWith('.mp4')) { const currentSite = await sites.find({ key: this.video.key }) this.$message.info('即将调用解析接口播放,请等待...')