music: me when capitalization matters for tags

This commit is contained in:
Cynthia Foxwell 2022-07-30 12:09:41 -06:00
parent 0ed2bb99c3
commit 850b65b19f

View file

@ -250,8 +250,12 @@ async function enqueue(
if (info.tags) {
title = `${
info.tags.artist ?? info.tags.album_artist ?? "<unknown artist>"
} - ${info.tags.title ?? "<no title>"}`;
info.tags.artist ??
info.tags.ARTIST ??
info.tags.album_artist ??
info.tags.ALBUM_ARTIST ??
"<unknown artist>"
} - ${info.tags.title ?? info.tags.TITLE ?? "<no title>"}`;
}
length = info.duration ? Math.floor(info.duration) * 1000 : 0;