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('即将调用解析接口播放,请等待...')