mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2024-11-07 16:44:16 +01:00
Update server/utils/parsers/parseOpfMetadata.js
This commit is contained in:
parent
47b9ee557e
commit
2834f6077e
@ -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…
Reference in New Issue
Block a user