mirror of
https://github.com/cuiocean/ZY-Player.git
synced 2026-02-09 21:47:34 +08:00
修复因分隔符"$"改动引入的bug
This commit is contained in:
@@ -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('即将调用解析接口播放,请等待...')
|
||||
|
||||
Reference in New Issue
Block a user