mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-04-25 01:16:40 +02:00
Update server/utils/parsers/parseOpfMetadata.js
This commit is contained in:
parent
2834f6077e
commit
a87c3f2c77
@ -92,7 +92,7 @@ function fetchDescription(metadata) {
|
|||||||
|
|
||||||
function fetchGenres(metadata) {
|
function fetchGenres(metadata) {
|
||||||
if (!metadata['dc:subject'] || !metadata['dc:subject'].length) return []
|
if (!metadata['dc:subject'] || !metadata['dc:subject'].length) return []
|
||||||
return metadata['dc:subject'].map(g => typeof g === 'string' ? g : null).filter(g => !!g).filter((item, index) => metadata['dc:subject'].indexOf(item) === index)
|
return [...new Set(metadata['dc:subject'].filter(g => typeof g === 'string'))]
|
||||||
}
|
}
|
||||||
|
|
||||||
function fetchLanguage(metadata) {
|
function fetchLanguage(metadata) {
|
||||||
|
Loading…
Reference in New Issue
Block a user