@@ -214,7 +214,7 @@ Currently, the following clients are available for use:
214214# # Using OAuth Tokens
215215You may notice that some requests are flagged by YouTube, causing an error message asking you to sign in to confirm you're not a bot.
216216With OAuth integration, you can request that `youtube-source` use your account credentials to appear as a normal user, with varying degrees
217- of efficacy. You can instruct `youtube-source` to use OAuth with the following :
217+ of efficacy. ** You do _not_ need to use `poToken` with OAuth.**
218218
219219> [!WARNING]
220220> Similar to the `poToken` method, this is NOT a silver bullet solution, and worst case could get your account terminated!
@@ -231,6 +231,8 @@ of efficacy. You can instruct `youtube-source` to use OAuth with the following:
231231> successfully completing the OAuth flow at least **once**. If you do not see your token, you may need to configure your
232232> logging (see above note).
233233
234+ You can instruct `youtube-source` to use OAuth with the following :
235+
234236# ## Lavaplayer
235237` ` ` java
236238YoutubeAudioSourceManager source = new YoutubeAudioSourceManager();
@@ -276,6 +278,11 @@ To obtain a `poToken`, you can use https://github.com/iv-org/youtube-trusted-ses
276278or the docker image. Both methods will print a ` poToken ` after a successful run, which you can supply to ` youtube-source `
277279to try and work around having automated requests blocked.
278280
281+
282+ > [ !NOTE]
283+ > A ` poToken ` is not a silver bullet, and currently it only applies to requests made via the ` WEB ` client.
284+ > You do not need to specify a ` poToken ` if using OAuth, and vice versa.
285+
279286Specifying the token is as simple as doing:
280287
281288### Lavaplayer
@@ -293,17 +300,22 @@ plugins:
293300 visitorData : " paste your visitor_data here"
294301` ` `
295302
296- > [!NOTE]
297- > A ` poToken` is not a silver bullet, and currently it only applies to requests made via the `WEB` client.
298-
299303## REST routes (` plugin` only)
300304# ## `POST` `/youtube`
301305
302306Body :
307+
308+ > [!NOTE]
309+ > You do not need to provide everything as it is shown.
310+ > For example, you can specify just `refreshToken` and `skipInitialization`, or just `poToken` and `visitorData`.
311+ > You do **not** need to use `poToken` with OAuth and vice versa.
312+
303313` ` ` json
304314{
305315 "refreshToken": "your new refresh token",
306- "skipInitialization": true
316+ "skipInitialization": true,
317+ "poToken": "your po_token",
318+ "visitorData": "your visitor_data"
307319}
308320` ` `
309321
0 commit comments