update data
This commit is contained in:
parent
fa2913a4ac
commit
57b5070faa
|
@ -46,11 +46,11 @@ test('GET TRACK INFO - PUBLIC API', async (t) => {
|
|||
|
||||
test('GET TRACK COVER', async (t) => {
|
||||
const track = await api.getTrackInfo(SNG_ID);
|
||||
const cover = await downloadAlbumCover(track, 500);
|
||||
const cover = (await downloadAlbumCover(track, 500)) as Buffer;
|
||||
|
||||
t.truthy(cover);
|
||||
t.true(Buffer.isBuffer(cover));
|
||||
t.is(cover ? cover.length : 0, 24646);
|
||||
t.is(cover.length, 24573);
|
||||
});
|
||||
|
||||
test('GET TRACK LYRICS', async (t) => {
|
||||
|
|
|
@ -42,7 +42,7 @@ export const spotifyApi = new SpotifyWebApi();
|
|||
* @returns {tokensType}
|
||||
*/
|
||||
export const setSpotifyAnonymousToken = async () => {
|
||||
const {data}: {data: tokensType} = await axios.get(
|
||||
const {data} = await axios.get<tokensType>(
|
||||
'https://open.spotify.com/get_access_token?reason=transport&productType=embed',
|
||||
);
|
||||
spotifyApi.setAccessToken(data.accessToken);
|
||||
|
|
|
@ -2,7 +2,7 @@ import axios from 'axios';
|
|||
import delay from 'delay';
|
||||
|
||||
let user_arl =
|
||||
'1c6e6e579b49d7228fc990dd31a711062a59d2b0439873af8510d4c272c43ed01634ddbdb9441a9e10f6e5ec34034c5f3cba4b521434063f6582524d083e98e4a3c0ae38ceac15ee53600ae7d3ae24c0653ab3a38807b322210bcc62dfa22022';
|
||||
'7b76232e393c63abd3ba151c6e3f2e3d0a3bd272b268f0482c8f6c2ebcc170984c13800745a53d3e27baa88bc3922ef22c5342e4e1ea1353a00d9156930a4bf462884d53215289420031507d65295aab971e75d1611c77d13df34b5e491fb2be';
|
||||
|
||||
const instance = axios.create({
|
||||
baseURL: 'https://api.deezer.com/1.0',
|
||||
|
|
Loading…
Reference in New Issue