Skip to content

Commit

Permalink
Add album to track info
Browse files Browse the repository at this point in the history
  • Loading branch information
DRSchlaubi committed Aug 14, 2023
1 parent 0d0dc6b commit 7200638
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion music/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
subprojects {
version = "3.1.5-SNAPSHOT"
version = "3.1.6-SNAPSHOT"
}
Original file line number Diff line number Diff line change
Expand Up @@ -74,5 +74,16 @@ suspend fun EmbedBuilder.addSong(translate: Translator, track: Track) {
}
}
}

if (lavaSrcInfo?.albumName != null) {
field {
name = translate("music.track.album", "music")
value = if (lavaSrcInfo.albumUrl != null) {
"[${lavaSrcInfo.albumName}](${lavaSrcInfo.albumUrl})"
} else {
lavaSrcInfo.albumName!!
}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -161,3 +161,4 @@ commands.radio.arguments.query.description=The query you want to start a radio f
commands.radio.description=Startet ein Song-Radio
commands.radio.invalid_vide=Song-radios funktionieren leider nicht für diesen song.
commands.radio.queued=Du hast erfolgreich ein Radio gestartet.
music.track.album=Album
Original file line number Diff line number Diff line change
Expand Up @@ -165,3 +165,4 @@ commands.radio.arguments.query.description=The query you want to start a radio f
commands.radio.description=Starts a song radio
commands.radio.invalid_vide=Song radios aren't supported for this song
commands.radio.queued=Successfully started a radio.
music.track.album=Album

0 comments on commit 7200638

Please sign in to comment.