From 170154d9d015f7a07baa8209b1a7b448b3efdbda Mon Sep 17 00:00:00 2001 From: mengkun <1163540807@qq.com> Date: Sat, 25 Nov 2017 13:21:45 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E7=BD=91=E6=98=93=E4=BA=91?= =?UTF-8?q?=E9=9F=B3=E4=B9=90=E9=83=A8=E5=88=86=E6=AD=8C=E6=9B=B2=E6=97=A0?= =?UTF-8?q?=E6=B3=95=E6=92=AD=E6=94=BE=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 解决网易云音乐部分歌曲无法播放问题(https://github.com/metowolf/Meting/issues/33) --- js/player.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/js/player.js b/js/player.js index 45acf07..23af39f 100644 --- a/js/player.js +++ b/js/player.js @@ -242,6 +242,12 @@ function play(music) { refreshList(); // 更新列表显示 } + // 解决网易云音乐部分歌曲无法播放问题 + if(music.source == "netease") { + music.url = music.url.replace(/m7c.music./g, "m7.music."); + music.url = music.url.replace(/m8c.music./g, "m8.music."); + } + try { rem.audio[0].pause(); rem.audio.attr('src', music.url);