1
0
forked from um/web

Remove Console Log

This commit is contained in:
MengYX 2020-04-23 21:15:52 +08:00
parent 181a3c402f
commit f64fa71b1e
No known key found for this signature in database
GPG Key ID: E63F9C7303E8F604
2 changed files with 1 additions and 4 deletions

View File

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

View File

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