mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-12-24 20:59:38 +00:00
Merge branch 'advplyr:master' into ffmpeg-progress
This commit is contained in:
commit
7faf42d892
44 changed files with 1146 additions and 541 deletions
|
|
@ -103,6 +103,16 @@ describe('parseNfoMetadata', () => {
|
|||
expect(result.asin).to.equal('B08X5JZJLH')
|
||||
})
|
||||
|
||||
it('parses language', () => {
|
||||
const nfoText = 'Language: eng'
|
||||
const result = parseNfoMetadata(nfoText)
|
||||
expect(result.language).to.equal('eng')
|
||||
|
||||
const nfoText2 = 'lang: deu'
|
||||
const result2 = parseNfoMetadata(nfoText2)
|
||||
expect(result2.language).to.equal('deu')
|
||||
})
|
||||
|
||||
it('parses description', () => {
|
||||
const nfoText = 'Book Description\n=========\nThis is a book.\n It\'s good'
|
||||
const result = parseNfoMetadata(nfoText)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue