@@ -85,15 +85,26 @@ For all supported urls and queries see [here](#supported-urls-and-queries)
85
85
86
86
To get a Spotify clientId & clientSecret you must go [ here] ( https://developer.spotify.com/dashboard ) and create a new application.
87
87
88
+ <details >
89
+ <summary >How to get sp dc cookie</summary >
90
+
91
+ 1 . Go to https://open.spotify.com
92
+ 2 . Open DevTools and go to the Application tab
93
+ 3 . Copy the value of the ` sp_dc ` cookie
94
+
95
+ </details >
96
+
97
+
88
98
``` java
89
99
AudioPlayerManager playerManager = new DefaultAudioPlayerManager ();
90
100
91
101
// create a new SpotifySourceManager with the default providers, clientId, clientSecret, spDc, countryCode and AudioPlayerManager and register it
102
+ // spDc is only needed if you want to use it with LavaLyrics
92
103
var spotify = new SpotifySourceManager (clientId, clientSecret, spDc, countryCode, () - > playerManager, DefaultMirroringAudioTrackResolver );
93
104
playerManager. registerSourceManager(spotify);
94
105
```
95
106
96
- #### LavaLyrics
107
+ ##### LavaLyrics
97
108
<details >
98
109
<summary >Click to expand</summary >
99
110
@@ -106,7 +117,7 @@ lyricsManager.registerLyricsManager(spotify);
106
117
```
107
118
</details >
108
119
109
- #### LavaSearch
120
+ ##### LavaSearch
110
121
<details >
111
122
<summary >Click to expand</summary >
112
123
@@ -120,16 +131,23 @@ searchManager.registerSearchManager(spotify);
120
131
121
132
</details >
122
133
134
+ ---
135
+
136
+ #### Apple Music
137
+
123
138
<details >
124
- <summary >How to get sp dc cookie </summary >
139
+ <summary >How to get media api token without Apple developer account </summary >
125
140
126
- 1 . Go to https://open.spotify.com
127
- 2 . Open DevTools and go to the Application tab
128
- 3 . Copy the value of the ` sp_dc ` cookie
141
+ 1 . Go to https://music.apple.com
142
+ 2 . Open DevTools and go to the Debugger tab
143
+ 3 . Search with this regex ` "(?<token>(ey[\w-]+)\.([\w-]+)\.([\w-]+))" ` in all ` index-*.js ` files
144
+ 4 . Copy the token from the source code
129
145
130
146
</details >
131
147
132
- #### Apple Music
148
+ Alternatively, you can
149
+ follow [ this guide] ( https://developer.apple.com/help/account/configure-app-capabilities/create-a-media-identifier-and-private-key/ )
150
+
133
151
``` java
134
152
AudioPlayerManager playerManager = new DefaultAudioPlayerManager ();
135
153
@@ -138,7 +156,8 @@ var appleMusic = new AppleMusicSourceManager(null, mediaAPIToken , "us", playerM
138
156
playerManager. registerSourceManager(appleMusic);
139
157
```
140
158
141
- #### LavaSearch
159
+ ##### LavaSearch
160
+
142
161
<details >
143
162
<summary >Click to expand</summary >
144
163
@@ -151,46 +170,34 @@ searchManager.registerSearchManager(appleMusic);
151
170
```
152
171
</details >
153
172
154
- <details >
155
- <summary >How to get media api token without Apple developer account</summary >
156
-
157
- 1 . Go to https://music.apple.com
158
- 2 . Open DevTools and go to the Debugger tab
159
- 3 . Search with this regex ` "(?<token>(ey[\w-]+)\.([\w-]+)\.([\w-]+))" ` in all ` index-*.js ` files
160
- 4 . Copy the token from the source code
161
-
162
- </details >
163
-
164
- Alternatively, you can
165
- follow [ this guide] ( https://developer.apple.com/help/account/configure-app-capabilities/create-a-media-identifier-and-private-key/ )
173
+ ---
166
174
167
175
#### Deezer
168
176
169
- ``` java
170
- AudioPlayerManager playerManager = new DefaultAudioPlayerManager ();
171
-
172
- // create a new DeezerSourceManager with the master decryption key and register it
173
-
174
- var deezer = new DeezerSourceManager (" the master decryption key" , " your arl" , formats);
175
- playerManager. registerSourceManager(deezer);
176
- ```
177
-
178
177
<details >
179
178
<summary >How to get deezer master decryption key</summary >
180
179
181
- Use google .
180
+ Use Google .
182
181
183
182
</details >
184
183
185
184
<details >
186
185
<summary >How to get deezer arl cookie</summary >
187
186
188
- Use google to find a guide on how to get the arl cookie. It's not that hard.
187
+ Use Google to find a guide on how to get the arl cookie. It's not that hard.
189
188
190
189
</details >
191
190
191
+ ``` java
192
+ AudioPlayerManager playerManager = new DefaultAudioPlayerManager ();
193
+
194
+ // create a new DeezerSourceManager with the master decryption key and register it
192
195
193
- #### LavaLyrics
196
+ var deezer = new DeezerSourceManager (" the master decryption key" , " your arl" , formats);
197
+ playerManager. registerSourceManager(deezer);
198
+ ```
199
+
200
+ ##### LavaLyrics
194
201
<details >
195
202
<summary >Click to expand</summary >
196
203
@@ -203,7 +210,7 @@ lyricsManager.registerLyricsManager(deezer);
203
210
```
204
211
</details >
205
212
206
- #### LavaSearch
213
+ ##### LavaSearch
207
214
<details >
208
215
<summary >Click to expand</summary >
209
216
@@ -216,6 +223,8 @@ searchManager.registerSearchManager(deezer);
216
223
```
217
224
</details >
218
225
226
+ ---
227
+
219
228
#### Yandex Music
220
229
221
230
<details >
@@ -256,7 +265,7 @@ var yandex = new YandexMusicSourceManager("...");
256
265
playerManager. registerSourceManager(yandex);
257
266
```
258
267
259
- #### LavaLyrics
268
+ ##### LavaLyrics
260
269
<details >
261
270
<summary >Click to expand</summary >
262
271
@@ -269,7 +278,7 @@ lyricsManager.registerLyricsManager(yandex);
269
278
```
270
279
</details >
271
280
272
- #### LavaSearch
281
+ ##### LavaSearch
273
282
<details >
274
283
<summary >Click to expand</summary >
275
284
@@ -282,6 +291,8 @@ searchManager.registerSearchManager(yandex);
282
291
```
283
292
</details >
284
293
294
+ ---
295
+
285
296
#### Flowery Text-to-Speech
286
297
287
298
Get list of all voices and languages supported [ here] ( https://api.flowery.pw/v1/tts/voices )
@@ -375,7 +386,7 @@ plugins:
375
386
albumLoadLimit : 6 # The number of pages at 300 tracks each
376
387
deezer :
377
388
masterDecryptionKey : " your master decryption key" # the master key used for decrypting the deezer tracks. (yes this is not here you need to get it from somewhere else)
378
- arl : " your deezer arl" # the arl cookie used for accessing the deezer api
389
+ # arl: "your deezer arl" # the arl cookie used for accessing the deezer api this is optional but required for formats above MP3_128
379
390
formats : [ "FLAC", "MP3_320", "MP3_256", "MP3_128", "MP3_64", "AAC_64" ] # the formats you want to use for the deezer tracks. "FLAC", "MP3_320", "MP3_256" & "AAC_64" are only available for premium users and require a valid arl
380
391
yandexmusic :
381
392
accessToken : " your access token" # the token used for accessing the yandex music api. See https://github.com/TopiSenpai/LavaSrc#yandex-music
0 commit comments