|
@@ -229,14 +229,12 @@ app.post('/lyric', async (req, res) => {
|
|
for (const result of (await (await fetch(ncmAPIUrl + `/cloudsearch?keywords=${name}%20${artist}%20${album}`)).json()).result.songs) {
|
|
for (const result of (await (await fetch(ncmAPIUrl + `/cloudsearch?keywords=${name}%20${artist}%20${album}`)).json()).result.songs) {
|
|
if(result.name === await convertert2s.convertPromise(name) ){
|
|
if(result.name === await convertert2s.convertPromise(name) ){
|
|
id = result.id
|
|
id = result.id
|
|
- console.log(id)
|
|
|
|
break;
|
|
break;
|
|
}
|
|
}
|
|
|
|
|
|
}
|
|
}
|
|
let lyric = await (await fetch(ncmAPIUrl + `/lyric?id=${id}`)).json()
|
|
let lyric = await (await fetch(ncmAPIUrl + `/lyric?id=${id}`)).json()
|
|
let ifTrans = false;
|
|
let ifTrans = false;
|
|
- console.log(lyric)
|
|
|
|
try{
|
|
try{
|
|
if (lyric.tlyric.lyric !== '') {
|
|
if (lyric.tlyric.lyric !== '') {
|
|
ifTrans = true;
|
|
ifTrans = true;
|