mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-07-07 16:04:54 +02:00
Update server/utils/parsers/parseOpfMetadata.js
This commit is contained in:
parent
47b9ee557e
commit
2834f6077e
1 changed files with 1 additions and 2 deletions
|
@ -17,8 +17,7 @@ function parseCreators(metadata) {
|
|||
|
||||
function fetchCreators(creators, role) {
|
||||
if (!creators || !creators.length) return null
|
||||
const creatorNames = creators.filter(c => c.role === role).map(c => c.value)
|
||||
return creatorNames.filter((item, index) => creatorNames.indexOf(item) === index)
|
||||
return [...new Set(creators.filter(c => c.role === role).map(c => c.value))]
|
||||
}
|
||||
|
||||
function fetchTagString(metadata, tag) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue