mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2024-11-08 00:54:33 +01:00
Parse NFO trim final parsed description
This commit is contained in:
parent
36e00e8d6a
commit
d9584174ff
@ -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…
Reference in New Issue
Block a user