mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-01-22 00:07:52 +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) {
|
function fetchCreators(creators, role) {
|
||||||
if (!creators || !creators.length) return null
|
if (!creators || !creators.length) return null
|
||||||
const creatorNames = creators.filter(c => c.role === role).map(c => c.value)
|
return [...new Set(creators.filter(c => c.role === role).map(c => c.value))]
|
||||||
return creatorNames.filter((item, index) => creatorNames.indexOf(item) === index)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function fetchTagString(metadata, tag) {
|
function fetchTagString(metadata, tag) {
|
||||||
|
Loading…
Reference in New Issue
Block a user