--- yaamp-0.0.1/main.js_ 2023-10-22 18:12:32.000000000 +0600 +++ yaamp-0.0.1/main.js 2023-11-20 13:29:34.191950115 +0600 @@ -292,35 +292,35 @@ }) // Discord Integration - await client.tracks.getTracks({"track-ids": [trackid]}).then((data) => { - const element = data.result[0]; - const startTimestamp = new Date(); - - let artist = []; - - element.artists.forEach((a) => { - artist.push(a.name); - }); - - const presObj = { - details: `${element.title}`, - state: `${artist.join(', ')}`, - largeImageKey: 'https://' + element.coverUri.replace("%%", "200x200"), - largeImageText: `${artist.join(', ')} - ${element.title}`, - smallImageKey: 'https://yaamp.ru/icon.png', - smallImageText: 'Yaamp.ru', - buttons: [ - { - label: 'Listen this track', - url: `https://music.yandex.ru/track/${element.id}`, - }, - ], - }; - - rpc.setActivity(presObj); - - return data; - }) +// await client.tracks.getTracks({"track-ids": [trackid]}).then((data) => { +// const element = data.result[0]; +// const startTimestamp = new Date(); +// +// let artist = []; +// +// element.artists.forEach((a) => { +// artist.push(a.name); +// }); +// +// const presObj = { +// details: `${element.title}`, +// state: `${artist.join(', ')}`, +// largeImageKey: 'https://' + element.coverUri.replace("%%", "200x200"), +// largeImageText: `${artist.join(', ')} - ${element.title}`, +// smallImageKey: 'https://yaamp.ru/icon.png', +// smallImageText: 'Yaamp.ru', +// buttons: [ +// { +// label: 'Listen this track', +// url: `https://music.yandex.ru/track/${element.id}`, +// }, +// ], +// }; +// +// rpc.setActivity(presObj); +// +// return data; +// }) return data;