mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-06-26 18:59:25 +02:00
Parse NFO trim final parsed description
This commit is contained in:
parent
36e00e8d6a
commit
d9584174ff
1 changed files with 12 additions and 6 deletions
|
@ -60,7 +60,7 @@ function parseNfoMetadata(nfoText) {
|
|||
metadata.publishedYear = year
|
||||
}
|
||||
}
|
||||
break;
|
||||
break
|
||||
case 'position in series':
|
||||
metadata.sequence = value
|
||||
break
|
||||
|
@ -84,6 +84,12 @@ function parseNfoMetadata(nfoText) {
|
|||
}
|
||||
}
|
||||
})
|
||||
|
||||
// Trim leading/trailing whitespace for description
|
||||
if (metadata.description) {
|
||||
metadata.description = metadata.description.trim()
|
||||
}
|
||||
|
||||
return metadata
|
||||
}
|
||||
module.exports = { parseNfoMetadata }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue