From 2fc60e4e9ca00b4d983ec6b3a2240513dfcfc4e5 Mon Sep 17 00:00:00 2001 From: Selfhost Alt Date: Sat, 16 Apr 2022 14:57:36 -0700 Subject: [PATCH] Handle an undefined publisher_summary when querying Audible --- server/providers/Audible.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/providers/Audible.js b/server/providers/Audible.js index 47ba06a0..c6d6836e 100644 --- a/server/providers/Audible.js +++ b/server/providers/Audible.js @@ -17,7 +17,7 @@ class Audible { narrator: narrators ? narrators.map(({ name }) => name).join(', ') : null, publisher: publisher_name, publishedYear: release_date ? release_date.split('-')[0] : null, - description: stripHtml(publisher_summary).result, + description: publisher_summary ? stripHtml(publisher_summary).result : null, cover: this.getBestImageLink(product_images), asin, series: primarySeries ? primarySeries.title : null,