All articles
A quick guide to configuring application.yml for Lavalink to achieve better performance, stability, and low-latency audio streaming.
1
FIrstly you should create a seperate google account and fill its Email at place of Your_Email at line no. 51 and password of that account on place of Your_Password at line no. 52

2
You should only do this step if sportify as source is not working
first check if it satrt working after doing
preferAnonymousToken: False on line no. 169
Configure
clientId: on line no. 164
clientSecret: on line no. 165
countryCode: line no. 166
preferAnonymousToken: False

3
Start your Lavalink Server after that go on console
--- [Lavalink] [ main] d.l.youtube.http.YoutubeOauth2Handler : OAUTH INTEGRATION: To give youtube-source access to your account, go to https://www.google.com/device and enter code XXXX-XXXX-XXXX
Click on https://www.google.com/device and enter code in "Enter Code" field

4
Select that account which you made while doing Step 1

5


6
Check console and you will see something like
--- [Lavalink] [ce-token-poller] d.l.youtube.http.YoutubeOauth2Handler : OAUTH INTEGRATION: Token retrieved successfully. Store your refresh token as this can be reused. (1//0eqXvClE0NRk6CgYIARAAGA4SNwF-L9IrUlsubZ81lOCRtFIAe7qOua2WVeiQLsxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx)
after this token is generated your lavalink will work as it should and you have to generate it after each restart and if you are having problem with the youtube not working then its sometimes issue with the firewall i dont know what exactly it is but its the issue of it
Talk to our community or create a ticket on our Discord server