discord-player-deezer 2.0.0-dev.6 → 2.0.0-dev.7
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 +24 -17
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -112,26 +112,33 @@ async function streamTrack(track, ext) {
|
|
|
112
112
|
const trackInfo = await trackInfoRes.json();
|
|
113
113
|
const info = trackInfo.results.data[0];
|
|
114
114
|
ext.context.player.debug(`ATTEMPTING TO EXTRACT STREAM WITH { licenseToken: ${ext.userInfo.licenseToken}, trackToken: ${info.TRACK_TOKEN} }`);
|
|
115
|
-
const streamInfoRes = await fetch("https://media.deezer.com/v1/
|
|
115
|
+
const streamInfoRes = await fetch("https://media.deezer.com/v1/get_url", {
|
|
116
116
|
method: "POST",
|
|
117
117
|
body: JSON.stringify({
|
|
118
118
|
license_token: ext.userInfo.licenseToken,
|
|
119
|
-
media: [
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
119
|
+
media: [
|
|
120
|
+
{
|
|
121
|
+
type: "FULL",
|
|
122
|
+
formats: [
|
|
123
|
+
{
|
|
124
|
+
cipher: "BF_CBC_STRIPE",
|
|
125
|
+
format: "FLAC"
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
cipher: "BF_CBC_STRIPE",
|
|
129
|
+
format: "MP3_256"
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
cipher: "BF_CBC_STRIPE",
|
|
133
|
+
format: "MP3_128"
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
cipher: "BF_CBC_STRIPE",
|
|
137
|
+
format: "MP3_MISC"
|
|
138
|
+
}
|
|
139
|
+
]
|
|
140
|
+
}
|
|
141
|
+
],
|
|
135
142
|
track_tokens: [info.TRACK_TOKEN]
|
|
136
143
|
})
|
|
137
144
|
});
|
package/package.json
CHANGED