fix lyrics (#144)
All checks were successful
Publish latest version / build (push) Successful in 1m31s

dont crash when there is not lyrics

Reviewed-on: #144
Co-authored-by: Mylloon <kennel.anri@tutanota.com>
Co-committed-by: Mylloon <kennel.anri@tutanota.com>
This commit is contained in:
Mylloon 2024-08-12 23:15:04 +02:00 committed by Mylloon
parent fe38841bf6
commit 8f9cdbe753
Signed by: Forgejo
GPG key ID: E72245C752A07631

View file

@ -144,7 +144,7 @@ export default {
});
}
if (data && data.length > 0) {
if (data && data.length > 0 && data[0].plainLyrics !== null) {
const title = data[0];
const limit_desc = 4096;
const nb_embed = Math.ceil(title.plainLyrics.length / limit_desc);