fix(plugins/anilist): handle null description (#1020)

This commit is contained in:
Simon Lecoq
2022-04-26 23:55:25 +02:00
committed by GitHub
parent ead26f7a0c
commit ac62596bef

View File

@@ -143,7 +143,7 @@ async function format({media, imports}) {
release,
genres,
progress,
description: description.replace(/<br\s*\\?>/g, " "),
description: description?.replace(/<br\s*\\?>/g, " ") ?? "",
scores: {user: userScore, community: averageScore},
released: type === "ANIME" ? episodes : chapters,
artwork: await imports.imgb64(artwork),