discord-player-deezer 2.0.0-dev.6 → 2.0.0-dev.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +3 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -110,9 +110,8 @@ async function streamTrack(track, ext) {
|
|
|
110
110
|
})
|
|
111
111
|
});
|
|
112
112
|
const trackInfo = await trackInfoRes.json();
|
|
113
|
-
const
|
|
114
|
-
|
|
115
|
-
const streamInfoRes = await fetch("https://media.deezer.com/v1/get-url", {
|
|
113
|
+
const songInfo = (await trackInfo.json()).results.data[0];
|
|
114
|
+
const streamInfoRes = await fetch("https://media.deezer.com/v1/get_url", {
|
|
116
115
|
method: "POST",
|
|
117
116
|
body: JSON.stringify({
|
|
118
117
|
license_token: ext.userInfo.licenseToken,
|
|
@@ -132,7 +131,7 @@ async function streamTrack(track, ext) {
|
|
|
132
131
|
format: "MP3_MISC"
|
|
133
132
|
}]
|
|
134
133
|
}],
|
|
135
|
-
track_tokens: [
|
|
134
|
+
track_tokens: [songInfo.TRACK_TOKEN]
|
|
136
135
|
})
|
|
137
136
|
});
|
|
138
137
|
const streamInfo = await streamInfoRes.json();
|
package/package.json
CHANGED