Compare commits

...

3 Commits

Author SHA1 Message Date
437765f79f chore: bump version to v1.10.7
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing
2024-09-29 18:22:11 +01:00
584fb24fdd fix: joox skip metadata fetch if api fails 2024-09-29 18:20:44 +01:00
2835ac08ec chore: import joox from local npm repo 2024-09-29 18:20:24 +01:00
4 changed files with 23 additions and 21 deletions

1
.npmrc Normal file
View File

@ -0,0 +1 @@
@unlock-music:registry=https://git.unlock-music.dev/api/packages/um/npm/

35
package-lock.json generated
View File

@ -1,17 +1,17 @@
{
"name": "unlock-music",
"version": "1.10.6",
"version": "1.10.7",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "unlock-music",
"version": "1.10.6",
"version": "1.10.7",
"hasInstallScript": true,
"license": "MIT",
"dependencies": {
"@babel/preset-typescript": "^7.16.5",
"@unlock-music/joox-crypto": "^0.0.1-R5",
"@unlock-music/joox-crypto": "^0.0.1",
"@xhacker/kgmwasm": "^1.0.0",
"@xhacker/qmcwasm": "^1.0.0",
"base64-js": "^1.5.1",
@ -3484,11 +3484,12 @@
"dev": true
},
"node_modules/@unlock-music/joox-crypto": {
"version": "0.0.1-R5",
"resolved": "https://registry.npmjs.org/@unlock-music/joox-crypto/-/joox-crypto-0.0.1-R5.tgz",
"integrity": "sha512-+FhGT4bjzfb1Q7dAwHps/XqbqXrRA6Qg7pkDPzyXfeRmQocAySQ/dekojxkaFBf7ZX5ToIAopwxkKZ5NFt5bFw==",
"version": "0.0.1",
"resolved": "https://git.unlock-music.dev/api/packages/um/npm/%40unlock-music%2Fjoox-crypto/-/0.0.1/joox-crypto-0.0.1.tgz",
"integrity": "sha512-bj7UcA4/KSqK07PPmoRYJ+3s4h3P45RGUVAMspptMYXobhVkDlB1ArTYNlyIlrF/P0EMy7JkfEdOgUz0nD7EAg==",
"license": "MIT",
"dependencies": {
"crypto-js": "^4.1.1"
"crypto-js": "^4.2.0"
},
"bin": {
"joox-decrypt": "joox-decrypt"
@ -6729,9 +6730,9 @@
}
},
"node_modules/crypto-js": {
"version": "4.1.1",
"resolved": "https://registry.npmjs.org/crypto-js/-/crypto-js-4.1.1.tgz",
"integrity": "sha512-o2JlM7ydqd3Qk9CA0L4NL6mTzU2sdx96a+oOfPu8Mkl/PK51vSyoi8/rQ8NknZtk44vq15lmhAj9CIAGwgeWKw=="
"version": "4.2.0",
"resolved": "https://registry.npmjs.org/crypto-js/-/crypto-js-4.2.0.tgz",
"integrity": "sha512-KALDyEYgpY+Rlob/iriUtjV6d5Eq+Y191A5g4UqLAi8CyGP9N1+FdVbkc1SxKc2r4YAYqG8JzO2KGL+AizD70Q=="
},
"node_modules/css-color-names": {
"version": "0.0.4",
@ -23653,11 +23654,11 @@
"dev": true
},
"@unlock-music/joox-crypto": {
"version": "0.0.1-R5",
"resolved": "https://registry.npmjs.org/@unlock-music/joox-crypto/-/joox-crypto-0.0.1-R5.tgz",
"integrity": "sha512-+FhGT4bjzfb1Q7dAwHps/XqbqXrRA6Qg7pkDPzyXfeRmQocAySQ/dekojxkaFBf7ZX5ToIAopwxkKZ5NFt5bFw==",
"version": "0.0.1",
"resolved": "https://git.unlock-music.dev/api/packages/um/npm/%40unlock-music%2Fjoox-crypto/-/0.0.1/joox-crypto-0.0.1.tgz",
"integrity": "sha512-bj7UcA4/KSqK07PPmoRYJ+3s4h3P45RGUVAMspptMYXobhVkDlB1ArTYNlyIlrF/P0EMy7JkfEdOgUz0nD7EAg==",
"requires": {
"crypto-js": "^4.1.1"
"crypto-js": "^4.2.0"
}
},
"@vue/babel-helper-vue-jsx-merge-props": {
@ -26297,9 +26298,9 @@
}
},
"crypto-js": {
"version": "4.1.1",
"resolved": "https://registry.npmjs.org/crypto-js/-/crypto-js-4.1.1.tgz",
"integrity": "sha512-o2JlM7ydqd3Qk9CA0L4NL6mTzU2sdx96a+oOfPu8Mkl/PK51vSyoi8/rQ8NknZtk44vq15lmhAj9CIAGwgeWKw=="
"version": "4.2.0",
"resolved": "https://registry.npmjs.org/crypto-js/-/crypto-js-4.2.0.tgz",
"integrity": "sha512-KALDyEYgpY+Rlob/iriUtjV6d5Eq+Y191A5g4UqLAi8CyGP9N1+FdVbkc1SxKc2r4YAYqG8JzO2KGL+AizD70Q=="
},
"css-color-names": {
"version": "0.0.4",

View File

@ -1,8 +1,8 @@
{
"name": "unlock-music",
"version": "1.10.6",
"version": "1.10.7",
"ext_build": 0,
"updateInfo": "修正文件过小的情况下酷狗 / QQ解密错误问题",
"updateInfo": "修正 joox 在远程获取 API 信息出错时不能正确回退到本地元信息获取的错误。",
"license": "MIT",
"description": "Unlock encrypted music file in browser.",
"repository": {
@ -21,7 +21,7 @@
},
"dependencies": {
"@babel/preset-typescript": "^7.16.5",
"@unlock-music/joox-crypto": "^0.0.1-R5",
"@unlock-music/joox-crypto": "^0.0.1",
"@xhacker/kgmwasm": "^1.0.0",
"@xhacker/qmcwasm": "^1.0.0",
"base64-js": "^1.5.1",

View File

@ -55,7 +55,7 @@ export async function extractQQMusicMeta(
if (id && id !== '0') {
try {
return fetchMetadataFromSongId(id, ext, musicMeta, musicBlob);
return await fetchMetadataFromSongId(id, ext, musicMeta, musicBlob);
} catch (e) {
console.warn('在线获取曲目信息失败,回退到本地 meta 提取', e);
}