|
@@ -291,7 +291,7 @@ app.post('/lyric', async (req, res) => {
|
|
|
|
|
|
async function fetchThatShit() {
|
|
async function fetchThatShit() {
|
|
try {
|
|
try {
|
|
- let fetched = (await (await fetch(`http://localhost:28883/api/v1/lyrics/single?title=${convertert2s.convertSync(name)}&album=${convertert2s.convertSync(album)}&artist=${convertert2s.convertSync(artist)}`, {
|
|
|
|
|
|
+ let fetched = (await (await fetch(`http://localhost:28883/jsonapi?title=${convertert2s.convertSync(name)}&album=${convertert2s.convertSync(album)}&artist=${convertert2s.convertSync(artist)}`, {
|
|
agent: new HttpsProxyAgent("http://localhost:7890")
|
|
agent: new HttpsProxyAgent("http://localhost:7890")
|
|
})).json())
|
|
})).json())
|
|
for(let entry of fetched) {
|
|
for(let entry of fetched) {
|