Skip to content

Commit ee3e938

Browse files
committed
Document specifying poToken for Lavaplayer usage
1 parent 354d7fe commit ee3e938

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,16 @@ assumption that if the challenge is not fulfilled, the request origin is a bot.
199199
To obtain a `poToken`, you can use https://github.com/iv-org/youtube-trusted-session-generator, by running the Python script
200200
or the docker image. Both methods will print a `poToken` after a successful run, which you can supply to `youtube-source`
201201
to try and work around having automated requests blocked.
202+
202203
Specifying the token is as simple as doing:
204+
205+
### Lavaplayer
206+
```java
207+
// Web is dev.lavalink.youtube.clients.Web
208+
Web.setPoTokenAndVisitorData("your po_token", "your visitor_data");
209+
```
210+
211+
### Lavalink
203212
```yaml
204213
plugins:
205214
youtube:

0 commit comments

Comments
 (0)