From 649ffa93b80b4beed0e5be6d9f3eaa1901e462a4 Mon Sep 17 00:00:00 2001 From: John Factotum <50942278+johnfactotum@users.noreply.github.com> Date: Wed, 26 Apr 2023 17:31:59 +0800 Subject: [PATCH] EPUB: add support for subtitle --- epub.js | 1 + 1 file changed, 1 insertion(+) diff --git a/epub.js b/epub.js index 65cda41..40971c6 100644 --- a/epub.js +++ b/epub.js @@ -719,6 +719,7 @@ export class EPUB { const title = metadata?.title?.[0] this.metadata = { title: title?.value, + subtitle: metadata?.title?.find(x => x.titleType === 'subtitle')?.value, sortAs: title?.fileAs, language: metadata?.language, identifier: getIdentifier(opf),