fix(music): add spotify-tokener for anonymous token, enable Partner API
- Add spotify-tokener service (ghcr.io/topi314/spotify-tokener:master) - Configure lavasrc to use it via customTokenEndpoint - Enable preferPartnerApi for playlist loading via Partner API - spotify-tokener handles the TOTP token generation properly
This commit is contained in:
parent
521e640409
commit
530fec43b3
2 changed files with 12 additions and 0 deletions
|
|
@ -14,6 +14,16 @@ services:
|
||||||
SPOTIFY_CLIENT_ID: ${SPOTIFY_CLIENT_ID}
|
SPOTIFY_CLIENT_ID: ${SPOTIFY_CLIENT_ID}
|
||||||
SPOTIFY_CLIENT_SECRET: ${SPOTIFY_CLIENT_SECRET}
|
SPOTIFY_CLIENT_SECRET: ${SPOTIFY_CLIENT_SECRET}
|
||||||
|
|
||||||
|
spotify-tokener:
|
||||||
|
image: ghcr.io/topi314/spotify-tokener:master
|
||||||
|
container_name: spotify-tokener
|
||||||
|
restart: unless-stopped
|
||||||
|
environment:
|
||||||
|
- SPOTIFY_TOKENER_ADDR=0.0.0.0:8086
|
||||||
|
- SPOTIFY_TOKENER_LOG_LEVEL=INFO
|
||||||
|
networks:
|
||||||
|
- default
|
||||||
|
|
||||||
bot:
|
bot:
|
||||||
build: .
|
build: .
|
||||||
container_name: loki-bot
|
container_name: loki-bot
|
||||||
|
|
|
||||||
|
|
@ -24,6 +24,8 @@ plugins:
|
||||||
countryCode: "RU"
|
countryCode: "RU"
|
||||||
playlistLoadLimit: 10
|
playlistLoadLimit: 10
|
||||||
albumLoadLimit: 10
|
albumLoadLimit: 10
|
||||||
|
preferPartnerApi: true
|
||||||
|
customTokenEndpoint: "http://spotify-tokener:8086/api/token"
|
||||||
applemusic:
|
applemusic:
|
||||||
countryCode: "RU"
|
countryCode: "RU"
|
||||||
mediaType: "music"
|
mediaType: "music"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue