From cb986a74a306bcdba420d4bbfdaa6828b8762788 Mon Sep 17 00:00:00 2001 From: duncte123 Date: Mon, 11 Mar 2024 08:03:50 +0100 Subject: [PATCH] Fix lavalyrics compat --- gradle/libs.versions.toml | 2 +- .../me/duncte123/lyrics/lavalink/JavaAudioLyricsManager.java | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index eae2f09..cf52d2b 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -1,7 +1,7 @@ [versions] lavalink-api = "4.0.0" lavalink-server = "4.0.0" -lavalyrics = "0932f77" +lavalyrics = "01bf4e7" lavaplayer = "2.1.0" [libraries] diff --git a/lavalyrics/src/main/java/me/duncte123/lyrics/lavalink/JavaAudioLyricsManager.java b/lavalyrics/src/main/java/me/duncte123/lyrics/lavalink/JavaAudioLyricsManager.java index f61925d..0406d81 100644 --- a/lavalyrics/src/main/java/me/duncte123/lyrics/lavalink/JavaAudioLyricsManager.java +++ b/lavalyrics/src/main/java/me/duncte123/lyrics/lavalink/JavaAudioLyricsManager.java @@ -88,12 +88,14 @@ private Lyrics attemptGeniusLoad(AudioTrack track) { .map((it) -> { if (it instanceof TextLyrics tl) { return new BasicAudioLyrics( + tl.source(), tl.source(), tl.text(), List.of() ); } else if (it instanceof TimedLyrics tl) { return new BasicAudioLyrics( + tl.source(), tl.source(), null, tl.lines()