Browse Source

Remove Console Log

20230320
MengYX 5 years ago
parent
commit
f64fa71b1e
No known key found for this signature in database GPG Key ID: E63F9C7303E8F604
  1. 1
      src/decrypt/kwm.js
  2. 4
      src/decrypt/qmc.js

1
src/decrypt/kwm.js

@ -31,7 +31,6 @@ export async function Decrypt(file, raw_filename, raw_ext) {
return dataString
}
console.log(Uint8ArrayToString(oriData.slice(0x30, 0x38)))
let audioData = oriData.slice(0x400);
let lenAudioData = audioData.length;

4
src/decrypt/qmc.js

@ -106,15 +106,13 @@ async function queryAlbumCoverImage(artist, title, album) {
} catch (e) {
console.error(e)
}
console.log(queriedSong);
let imgUrl = "";
if (!!queriedSong && !!queriedSong["album"]) {
if (queriedSong["album"]["pmid"] !== undefined) {
imgUrl = "https://y.gtimg.cn/music/photo_new/T002M000" + queriedSong["album"]["pmid"] + ".jpg"
} else if (queriedSong["album"]["id"] !== undefined) {
imgUrl = "https://imgcache.qq.com/music/photo/album/" +
queriedSong["album"]["id"] % 100 +
"/albumpic_" + queriedSong["album"]["id"] + "_0.jpg"
queriedSong["album"]["id"] % 100 + "/albumpic_" + queriedSong["album"]["id"] + "_0.jpg"
}
}
return imgUrl;

Loading…
Cancel
Save