修复酷我音乐搜索ID匹配问题

This commit is contained in:
彭狸花喵 2023-09-23 17:09:24 +08:00 committed by GitHub
parent e18c295ca6
commit bf790a908b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -30,7 +30,7 @@ export default {
// console.log(rawData)
for (let i = 0; i < rawData.length; i++) {
const info = rawData[i]
let songId = info.MUSICRID.replace('MUSIC_', '')
let songId = info.MUSICRID.match(/\d+/g)[0]
// const format = (info.FORMATS || info.formats).split('|')
if (!info.N_MINFO) {