Change "Artist" to "Artists" depending on song, Remove Album if too long.

This commit is contained in:
bingus_violet 2024-05-30 21:50:08 -05:00
parent 633076e52a
commit 7b9281057c

View file

@ -103,13 +103,17 @@ module.exports = {
function songStats() {
var html = ``
if (activity.assets && activity.assets.large_text != activity.details) {
if (activity.assets && activity.assets.large_text != activity.details && activity.state.length + activity.assets.large_text.length < 100) {
html += `
<br> Album: ${activity.assets.large_text || " "}
<br> Artist: ${activity.state || " "}
`
} else {
html += `<br> Artist: ${activity.state || " "}`
html += "<br>"
if (activity.state.includes(";"))
{ html += "Artists: " }
else { html += "Artist: " }
html += `${activity.state || " "}`
}
return html