discord-player-deezer 2.0.0-dev.3 → 2.0.0-dev.4

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.
Files changed (2) hide show
  1. package/dist/index.js +6 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -134,8 +134,13 @@ async function streamTrack(track, ext) {
134
134
  }]
135
135
  }],
136
136
  track_tokens: [info.TRACK_TOKEN]
137
- })
137
+ }),
138
+ headers: {
139
+ "User-Agent": "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:120.0) Gecko/20100101 Firefox/120.0",
140
+ "Content-Type": "application/json"
141
+ }
138
142
  });
143
+ ext.context.player.debug(await streamInfoRes.text());
139
144
  const streamInfo = await streamInfoRes.json();
140
145
  const trackMediaUrl = streamInfo.data[0].media[0].sources[0].url;
141
146
  ext.context.player.debug("DEEZER FOUND MEDIA URL " + trackMediaUrl);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "discord-player-deezer",
3
- "version": "2.0.0-dev.3",
3
+ "version": "2.0.0-dev.4",
4
4
  "description": "A custom extractor made for discord-player that enables you to extract from Deezer.",
5
5
  "main": "dist/index.js",
6
6
  "author": "retro_ig",