topi314 / LavaSrc

A collection of additional Lavaplayer/Lavalink Sources

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Spotify links yield no data on loadtracks

michihupf opened this issue · comments

Hi

I am facing an issue where spotify urls aren't giving me any data, see logs below.
Queueing the song by just providing the song title and artist as a search query (and letting lavalink do its magic) it finds it on YouTube and plays it completely fine. As far as I understand lavasrc does this exact thing but gets the title and artist by way of the spotify API. Somehow this results in no matches thought. Is there anything I am missing?

Logs:

2023-10-15T14:49:58.960+02:00  INFO 7166 --- [  XNIO-1 task-2] l.server.player.AudioLoaderRestHandler   : Got request to load for identifier "https://open.spotify.com/track/4zuZkPo9wVNTmuSWj5DaZk?si=e52817fb4a2149cb"
2023-10-15T14:49:58.960+02:00  INFO 7166 --- [  XNIO-1 task-2] lavalink.server.player.AudioLoader       : No matches found
2023-10-15T14:49:58.964+02:00  INFO 7166 --- [  XNIO-1 task-2] l.server.io.RequestLoggingFilter         : GET /v4/loadtracks?identifier=https%3A%2F%2Fopen.spotify.com%2Ftrack%2F4zuZkPo9wVNTmuSWj5DaZk%3Fsi%3De52817fb4a2149cb, client=127.0.0.1

Configuration: application.yml

plugins:
  lavasrc:
    providers:
      - "ytsearch:\"%ISRC%\""
      - "ytsearch:%QUERY%"
    sources:
      youtube: true
    spotify:
      clientId: "REDACTED"
      clientSecret: "REDACTED"
      countryCode: "US"
      playlistLoadLimit: 6
      albumLoadLimit: 6
lavalink:
  plugins:
    - dependency: "com.github.topi314.lavasrc:lavasrc-plugin:4.0.0-beta.7"
      repository: "https://maven.topi.wtf/releases"

Relevant versions:
lavalink 4.0.0-beta.4
lavasrc 4.0.0-beta.7

For context. I am using lavalink-rs to make a private discord music bot. YouTube and SoundCloud already work but Spotify is giving me some issues.