Skip to content

Commit

Permalink
OPDS: fix language
Browse files Browse the repository at this point in the history
  • Loading branch information
johnfactotum committed Dec 8, 2023
1 parent da77cf5 commit 61b5608
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/opds/opds.js
Original file line number Diff line number Diff line change
Expand Up @@ -544,8 +544,9 @@ const renderPublication = async (pub, baseURL) => {
for (const [k, v = pub.metadata[k]] of [
['publisher', await renderContributor(pub.metadata.publisher, baseURL)],
['published', await globalThis.formatDate(pub.metadata.published)],
['language', await Promise.all([pub.metadata.language ?? []].flat()
.map(x => globalThis.formatLanguage(x)))],
['language', await globalThis.formatList(
await Promise.all([pub.metadata.language ?? []].flat()
.map(x => globalThis.formatLanguage(x))))],
['identifier'],
]) {
if (!v) continue
Expand Down

0 comments on commit 61b5608

Please sign in to comment.