discord-bot/lavalink/application.yml
loki5512344 ea9e77de01
fix(music): spotify playlists, auto-leave, stats logging
- Fix Spotify playlist loading (401 error) by enabling preferPartnerApi
  in lavasrc (uses Partner API instead of v1 /items endpoint)
- Remove noisy DEBUG stats logging (change to TRACE)
- Increase auto-leave timer from 2 to 3 minutes
- Add proper voice disconnect on auto-leave via JDA AudioManager
- Increase playlist/album load limit from 6 to 10 (1000 tracks)
2026-07-17 23:23:52 +02:00

58 lines
1.3 KiB
YAML

server:
port: 2333
address: 0.0.0.0
plugins:
youtube:
enabled: true
clients:
- MUSIC
- WEB
- ANDROID_VR
lavasrc:
providers:
- "ytsearch:\"%ISRC%\""
- "ytsearch:%QUERY%"
sources:
spotify: true
applemusic: true
deezer: false
yandexmusic: false
spotify:
clientId: "${SPOTIFY_CLIENT_ID}"
clientSecret: "${SPOTIFY_CLIENT_SECRET}"
countryCode: "RU"
playlistLoadLimit: 10
albumLoadLimit: 10
preferPartnerApi: true
applemusic:
countryCode: "RU"
mediaType: "music"
playlistLoadLimit: 6
lavalink:
plugins:
- dependency: "dev.lavalink.youtube:youtube-plugin:1.18.1"
repository: "https://maven.lavalink.dev/releases"
- dependency: "com.github.topi314.lavasrc:lavasrc-plugin:4.8.3"
repository: "https://maven.topi.wtf/releases"
server:
password: "Hch4HiVCxkKs9JPiSnrt4Q"
sources:
youtube: false
soundcloud: true
bandcamp: true
twitch: true
http: true
local: false
bufferDurationMs: 400
youtubePlaylistLoadLimit: 6
playerUpdateInterval: 5
youtubeSearchEnabled: false
soundcloudSearchEnabled: true
gc-warnings: true
logging:
level:
root: INFO
lavalink: INFO