EPUB: add support for subtitle

This commit is contained in:
John Factotum
2023-04-26 17:31:59 +08:00
parent 8a69caf1dd
commit 649ffa93b8
+1
View File
@@ -719,6 +719,7 @@ export class EPUB {
const title = metadata?.title?.[0] const title = metadata?.title?.[0]
this.metadata = { this.metadata = {
title: title?.value, title: title?.value,
subtitle: metadata?.title?.find(x => x.titleType === 'subtitle')?.value,
sortAs: title?.fileAs, sortAs: title?.fileAs,
language: metadata?.language, language: metadata?.language,
identifier: getIdentifier(opf), identifier: getIdentifier(opf),