#What is the version for the LavaLyrics plugin?

1 messages · Page 1 of 1 (latest)

hard socket
#
        - dependency: com.github.topi314.lavalyrics:lavalyrics-plugin:x.x.x
          snapshot: false
sterile siren
hard socket
#

i changed it already to true, same thing

sterile siren
#

add respository: https://maven.topi.wtf/snapshots for now

#

should be a full release later this week

hard socket
#

okay

sterile siren
#

else it won't work

hard socket
#

im running this one:

sterile siren
#

yeah that's not gonna work

hard socket
#

from #1231672788914274354

#

okay

sterile siren
#

use the latest dev branch + the new youtube source plugin

hard socket
#

youtube source plugin is different from "youtube plugin"? or are they the same thing

sterile siren
#

its the same

hard socket
#

okay now maybe a stupid question, but how do I get the dev version to a .jar file to execute?

sterile siren
#

click the green checkmark
each lavalink commit gets built

#

the bottom details has a link to download it

hard socket
#

why is the checkmark even a button

#

lol

#

thanks

sterile siren
#

¯_(ツ)_/¯

hard socket
#

and the green checkmark

sterile siren
#

since this is all still pre-release you havw to add the lavasrc snapshot too

#

just add lavasrc in your application.yml

#

set version to the last short commit hash in that branch

#

and set snapshot to true

silk anvilBOT
#
Lavalink Nodes
{
  "lavalink-v4-node-3": {
    "version": {
      "semver": "78c090c4a44860cfee781ee20e1db391b169a7ce-SNAPSHOT",
      "major": 0,
      "minor": 0,
      "patch": 0,
      "preRelease": ""
    },
    "buildTime": 1714298390637,
    "git": {
      "branch": "dev",
      "commit": "78c090c",
      "commitTime": 1714298293000
    },
    "jvm": "17.0.11",
    "lavaplayer": "2.1.1",
    "sourceManagers": [
      "soundcloud",
      "bandcamp",
      "twitch",
      "vimeo",
      "getyarn.io",
      "clypit",
      "speak",
      "pornhub",
      "reddit",
      "ocremix",
      "tiktok",
      "mixcloud",
      "soundgasm",
      "spotify",
      "applemusic",
      "deezer",
      "flowery-tts",
      "youtube",
      "http"
    ],
    "filters": [
      "volume",
      "equalizer",
      "karaoke",
      "timescale",
      "tremolo",
      "vibrato",
      "distortion",
      "rotation",
      "channelMix",
      "lowPass"
    ],
    "plugins": [
      {
        "name": "lavasearch-plugin",
        "version": "1.0.0"
      },
      {
        "name": "DuncteBot-plugin",
        "version": "1.7.0"
      },
      {
        "name": "lavasrc-plugin",
        "version": "bedd0b9"
      },
      {
        "name": "sponsorblock-plugin",
        "version": "3.0.0"
      },
      {
        "name": "lavalyrics-plugin",
        "version": "951969e"
      },
      {
        "name": "youtube",
        "version": "1.0.5"
      }
    ]
  }
}
sterile siren
#

see version here
I updated to all the latest stuff yesterday too

hard socket
#

so

  1. remove in plugins/ folder the lavasrc plugin
  2. add this:
- dependency: "com.github.topi314.lavasrc:lavasrc-plugin:bedd0b9"
      repository: "https://maven.lavalink.dev/releases"
      snapshot: true
sterile siren
#

without repository

hard socket
#

why? what changes if I dont

sterile siren
#

because that plugin is already in the standard lavalink plugin repo

#

lavalyrics not since it's unreleased

hard socket
#

okay

sterile siren
#

(it will be once lavalink v4.0.5 hits)

hard socket
#

okay it works now.

Thank you so much

sterile siren
#

let me know if stuff breaks so I can fix those before a full release

hard socket
#

smol question

#

what is encodedTrack

#

like do I first need to search for the song

#

is it something like this?

QAABAgMAEU5hc2hlZWxpIEFhbmtoZWluADNTYWNoZXQgLSBQYXJhbXBhcmEsIFNhY2hldCBUYW5kb24sIFBhcmFtcGFyYSBUYW5kb24AAAAAAAILcAAISDZ6MDNCZ18AAQA7aHR0cHM6Ly93d3cuamlvc2Fhdm4uY29tL3NvbmcvbmFzaGVlbGktYWFua2hlaW4vT0Y0UkFVZHlVR3cBAFJodHRwczovL2Muc2Fhdm5jZG4uY29tLzU1MS9OYXNoZWVsaS1BYW5raGVpbi1IaW5kaS0yMDE5LTIwMTkwMzI2MDk0NjAyLTUwMHg1MDAuanBnAAAIamlvc2Fhdm4AAAAAAAAAAA==

sterile siren
#

yes

hard socket
#

eh what do I do with this:

  timestamp: 1714390936445,
  status: 500,
  error: 'Internal Server Error',
  message: 'Request processing failed: java.lang.IllegalArgumentException: Spotify spDc must be set',
  path: '/v4/lyrics'
#

what is "Spotify spDc"

#
path: '/v4/lyrics?track=QAACQwMAJFN1YnN0aXR1dGlvbiAoZmVhdC4gSnVsaWFuIFBlcnJldHRhKQAUUHVycGxlIERpc2NvIE1hY2hpbmUAAAAAAALE5QAWMkYycDdiNVhxMjBtUnlFZVdZYWVVRgABADVodHRwczovL29wZW4uc3BvdGlmeS5jb20vdHJhY2svMkYycDdiNVhxMjBtUnlFZVdZYWVVRgEAQGh0dHBzOi8vaS5zY2RuLmNvL2ltYWdlL2FiNjc2MTZkMDAwMGIyNzNhOGJjZjhmYWM4NTIwYWMyY2JmNzJlYTcBAAxERUU4NjIzMDAwOTMAB3Nwb3RpZnkBACRTdWJzdGl0dXRpb24gKGZlYXQuIEp1bGlhbiBQZXJyZXR0YSkBADVodHRwczovL29wZW4uc3BvdGlmeS5jb20vYWxidW0vNHlaTUFQSTJOYXpLYlBieXN0RTZENwEANmh0dHBzOi8vb3Blbi5zcG90aWZ5LmNvbS9hcnRpc3QvMldCSlFHZjFiVDFreHVvcXppSDVnNAEAQGh0dHBzOi8vaS5zY2RuLmNvL2ltYWdlL2FiNjc2MTYxMDAwMGU1ZWIxMTk3ZTEzNjg5NDYzYzgxZjg4NTkyOTQBAGtodHRwczovL3Auc2Nkbi5jby9tcDMtcHJldmlldy8xMWYzZjgyZTM5YjVmZGJhOTU4YTI1YTEwZDZjOGQyMmU2YmRhYjhjP2NpZD0yNDc3M2VlNDUyZDY0MTNmOGJmMTJhMzg1OTJkMzc1NgAAAAAAAAAAAA==&skipTrackSource=false'
hard socket
#

ah okay

#

okay that fixed the spDc error

#

now I get

error: 'Internal Server Error',
message: 'Request processing failed: java.lang.IllegalArgumentException: Illegal base64 character 20',

#

for another song

sterile siren
#

throw your track into /decode

silk anvilBOT
#

error while decoding track: failed to read track flags: unexpected EOF

#

error while decoding track: invalid base64: illegal base64 data at input byte 5

sterile siren
#

well that's not an encoded track

hard socket
#

do you want me to use /decode with a encoded track

sterile siren
#

yes

#

with whatever you post to /v4/lyrics

hard socket
#

because I search for tracks using the link of the song

then I use the first result[0].track

which I pass in there GET lyrics

sterile siren
#

then make sureyou actually get a track back from search

hard socket
#

wait it is possible to NOT get a track back?

sterile siren
#

you should already handle this with empty & error

#

do you url encode query params?

silk anvilBOT
#

track was encoded with version: 3

{
  "encoded": "QAACQwMAJFN1YnN0aXR1dGlvbiAoZmVhdC4gSnVsaWFuIFBlcnJldHRhKQAUUHVycGxlIERpc2NvIE1hY2hpbmUAAAAAAALE5QAWMkYycDdiNVhxMjBtUnlFZVdZYWVVRgABADVodHRwczovL29wZW4uc3BvdGlmeS5jb20vdHJhY2svMkYycDdiNVhxMjBtUnlFZVdZYWVVRgEAQGh0dHBzOi8vaS5zY2RuLmNvL2ltYWdlL2FiNjc2MTZkMDAwMGIyNzNhOGJjZjhmYWM4NTIwYWMyY2JmNzJlYTcBAAxERUU4NjIzMDAwOTMAB3Nwb3RpZnkBACRTdWJzdGl0dXRpb24gKGZlYXQuIEp1bGlhbiBQZXJyZXR0YSkBADVodHRwczovL29wZW4uc3BvdGlmeS5jb20vYWxidW0vNHlaTUFQSTJOYXpLYlBieXN0RTZENwEANmh0dHBzOi8vb3Blbi5zcG90aWZ5LmNvbS9hcnRpc3QvMldCSlFHZjFiVDFreHVvcXppSDVnNAEAQGh0dHBzOi8vaS5zY2RuLmNvL2ltYWdlL2FiNjc2MTYxMDAwMGU1ZWIxMTk3ZTEzNjg5NDYzYzgxZjg4NTkyOTQBAGtodHRwczovL3Auc2Nkbi5jby9tcDMtcHJldmlldy8xMWYzZjgyZTM5YjVmZGJhOTU4YTI1YTEwZDZjOGQyMmU2YmRhYjhjP2NpZD0yNDc3M2VlNDUyZDY0MTNmOGJmMTJhMzg1OTJkMzc1NgAAAAAAAAAAAA==",
  "info": {
    "identifier": "2F2p7b5Xq20mRyEeWYaeUF",
    "author": "Purple Disco Machine",
    "length": 181477,
    "isStream": false,
    "title": "Substitution (feat. Julian Perretta)",
    "uri": "https://open.spotify.com/track/2F2p7b5Xq20mRyEeWYaeUF",
    "sourceName": "spotify",
    "position": 0,
    "artworkUrl": "https://i.scdn.co/image/ab67616d0000b273a8bcf8fac8520ac2cbf72ea7",
    "isrc": "DEE862300093"
  },
  "pluginInfo": {
    "albumName": "Substitution (feat. Julian Perretta)",
    "albumUrl": "https://open.spotify.com/album/4yZMAPI2NazKbPbystE6D7",
    "artistUrl": "https://open.spotify.com/artist/2WBJQGf1bT1kxuoqziH5g4",
    "artistArtworkUrl": "https://i.scdn.co/image/ab6761610000e5eb1197e13689463c81f8859294",
    "previewUrl": "https://p.scdn.co/mp3-preview/11f3f82e39b5fdba958a25a10d6c8d22e6bdab8c?cid=24773ee452d6413f8bf12a38592d3756",
    "isPreview": false
  },
  "userData": {}
}
sterile siren
#

that one is fine

hard socket
#

yes that one worked for me 2

sterile siren
#

and the one which does not?

hard socket
sterile siren
#

the encoded track

hard socket
#

yes i need to console.log that first

#

give me a sec

silk anvilBOT
#

track was encoded with version: 3

{
  "encoded": "QAAB+wMABUZhZGVkAANaSFUAAAAAAANo+AAWMkdRRU05SnVIdTMwc0dGdlJZZUN4egABADVodHRwczovL29wZW4uc3BvdGlmeS5jb20vdHJhY2svMkdRRU05SnVIdTMwc0dGdlJZZUN4egEAQGh0dHBzOi8vaS5zY2RuLmNvL2ltYWdlL2FiNjc2MTZkMDAwMGIyNzNhNWFhN2JlYWRiYzFmOTNkMGVjMDFmMjMBAAxVU1NNMTE0MDU2NjAAB3Nwb3RpZnkBAAxUSEUgTklHSFREQVkBADVodHRwczovL29wZW4uc3BvdGlmeS5jb20vYWxidW0vNTlpck0zaFNzWDlLcGozMXJKbnNIYwEANmh0dHBzOi8vb3Blbi5zcG90aWZ5LmNvbS9hcnRpc3QvMjhqOGxCV0RkRFNIU1N0NW9QbHNYMgEAQGh0dHBzOi8vaS5zY2RuLmNvL2ltYWdlL2FiNjc2MTYxMDAwMGU1ZWI4ZTliNDA2YjlhNWExMjBiZjZmYjRkMjEBAGtodHRwczovL3Auc2Nkbi5jby9tcDMtcHJldmlldy83N2ExYWMxY2QzOTMwMTkyNjg4ZmMyM2JkYzI3MWM0NzIwNzE2NDE0P2NpZD0yNDc3M2VlNDUyZDY0MTNmOGJmMTJhMzg1OTJkMzc1NgAAAAAAAAAAAA==",
  "info": {
    "identifier": "2GQEM9JuHu30sGFvRYeCxz",
    "author": "ZHU",
    "length": 223480,
    "isStream": false,
    "title": "Faded",
    "uri": "https://open.spotify.com/track/2GQEM9JuHu30sGFvRYeCxz",
    "sourceName": "spotify",
    "position": 0,
    "artworkUrl": "https://i.scdn.co/image/ab67616d0000b273a5aa7beadbc1f93d0ec01f23",
    "isrc": "USSM11405660"
  },
  "pluginInfo": {
    "albumName": "THE NIGHTDAY",
    "albumUrl": "https://open.spotify.com/album/59irM3hSsX9Kpj31rJnsHc",
    "artistUrl": "https://open.spotify.com/artist/28j8lBWDdDSHSSt5oPlsX2",
    "artistArtworkUrl": "https://i.scdn.co/image/ab6761610000e5eb8e9b406b9a5a120bf6fb4d21",
    "previewUrl": "https://p.scdn.co/mp3-preview/77a1ac1cd3930192688fc23bdc271c4720716414?cid=24773ee452d6413f8bf12a38592d3756",
    "isPreview": false
  },
  "userData": {}
}
sterile siren
#

make sure your query params are url encoded

hard socket
#
[
  {
    track: 'QAAB+wMABUZhZGVkAANaSFUAAAAAAANo+AAWMkdRRU05SnVIdTMwc0dGdlJZZUN4egABADVodHRwczovL29wZW4uc3BvdGlmeS5jb20vdHJhY2svMkdRRU05SnVIdTMwc0dGdlJZZUN4egEAQGh0dHBzOi8vaS5zY2RuLmNvL2ltYWdlL2FiNjc2MTZkMDAwMGIyNzNhNWFhN2JlYWRiYzFmOTNkMGVjMDFmMjMBAAxVU1NNMTE0MDU2NjAAB3Nwb3RpZnkBAAxUSEUgTklHSFREQVkBADVodHRwczovL29wZW4uc3BvdGlmeS5jb20vYWxidW0vNTlpck0zaFNzWDlLcGozMXJKbnNIYwEANmh0dHBzOi8vb3Blbi5zcG90aWZ5LmNvbS9hcnRpc3QvMjhqOGxCV0RkRFNIU1N0NW9QbHNYMgEAQGh0dHBzOi8vaS5zY2RuLmNvL2ltYWdlL2FiNjc2MTYxMDAwMGU1ZWI4ZTliNDA2YjlhNWExMjBiZjZmYjRkMjEBAGtodHRwczovL3Auc2Nkbi5jby9tcDMtcHJldmlldy83N2ExYWMxY2QzOTMwMTkyNjg4ZmMyM2JkYzI3MWM0NzIwNzE2NDE0P2NpZD0yNDc3M2VlNDUyZDY0MTNmOGJmMTJhMzg1OTJkMzc1NgAAAAAAAAAAAA==',
    title: 'Faded',
    author: 'ZHU',
    duration: 223480,
    uri: 'https://open.spotify.com/track/2GQEM9JuHu30sGFvRYeCxz',
    requester: '337568120028004362'
  }
]
#

eh url encoded?

sterile siren
#

you can't just put any character into query params

#

they need to be encoed properly

hard socket
#

i use a string for the song

and if the string is not a spotify track I return

sterile siren
#

how do you make the request to /v4/lyrics?

hard socket
#

using magmastream rest.get function

sterile siren
#

what is endpoint?

hard socket
sterile siren
#

yeah that's not at all correctly encoded

hard socket
#

so how do I correctly encode it first

sterile siren
#

i don't use js

hard socket
#

okay but the problem is that the track property of "Faded - ZHU" is somehow different that the one from "Purple Disco Machine -Substitution"

sterile siren
#

what is different from what?

hard socket
#

I dont understand why the song "Purple Disco Machine -Substitution" works

#

but faded not

sterile siren
#

because you don't url encode your query params

#

and the later has a + which maps to a space

#

so it fucks up the whole thing

hard socket
#

okay now for dummies.

What exactly do you mean with url encode my query params

sterile siren
#

do you know how http works?

#

the protocol

hard socket
#

somewhat but not good

sterile siren
#

query params are key value pairs

#

right?

hard socket
#

ya

sterile siren
#

key=value&key2=value2

#

how do you think it knows when a new kv pair comes

#

and the value ueses a &

#

right it encodes the & in the value to something different

hard socket
#

ye like %20

sterile siren
#

that is for space

#

but you don't do that

hard socket
#

yes

sterile siren
#

you just throw the raw encoded track in the url and hope for the best

#

and it clearly doesn't work

hard socket
#

ah okay

#

i just learned something new..

it was as simple as adding this:

#

lol

sterile siren
#

I don't think i would add it there

#

but yes prob

sterile siren
hard socket
#

add it where then?

sterile siren
#

when you make the url

hard socket
#

okay

hard socket
dim garden
#

No need to wait for the next lavalink release the since the fix was released in a plugin

hard socket
#

if I use the version which is linked in the common issues thread, I cannot use the lavalyrics plugin

hallow ruin
hard socket
#

I even got the youtube-source plugin on there

#

idk why my lavalink log is 65mb but I cannot upload it here on discord..

So here is the google drive link instead 🤷‍♂️

dim garden
hard socket
#

I am using these plugins:

    plugins:
        - dependency: com.github.topi314.lavasrc:lavasrc-plugin:bedd0b9
          snapshot: true
        - dependency: com.github.lavalink-devs.lavaplayer-youtube-source:plugin:1.0.5
          repository: https://jitpack.io
        - dependency: com.github.topi314.lavalyrics:lavalyrics-plugin:951969e
          repository: https://maven.topi.wtf/snapshots
          snapshot: true
#
  • sponsorblock-plugin-3.0.0.jar
    is also there
hallow ruin
#

Change to

    plugins:
        - dependency: com.github.topi314.lavasrc:lavasrc-plugin:d35f893
          snapshot: true
        - dependency: com.github.lavalink-devs.lavaplayer-youtube-source:plugin:1.0.6
          repository: https://jitpack.io
        - dependency: com.github.topi314.lavalyrics:lavalyrics-plugin:951969e
          repository: https://maven.topi.wtf/snapshots
          snapshot: true
#

And see if it changes anything

hard socket
#

still same issue

#

i deleted the logs and restarted the server, maybe the logs are now not so huge in file size 🤷‍♂️

hallow ruin
#

You may have tried IP rotation?

#

Because it looks like something in common issues to me

hard socket
#

no, not yet.
The problem I have is that my hosting is not providing vps servers atm. and they offer lavalink hosting but I dont have access to use ip rotation.
I contacted them about it though

hallow ruin
#

This YouTube is spoiling all our work and it's the biggest pain, unfortunately