mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-01-29 17:28:39 +01:00
Fix abmetadata chapter parser
This commit is contained in:
parent
5b02c5185f
commit
88354de495
@ -214,7 +214,7 @@ function parseChapterLines(lines) {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
if (chapter.start === null || chapter.end === null || chapter.end > chapter.start) {
|
if (chapter.start === null || chapter.end === null || chapter.end < chapter.start) {
|
||||||
Logger.warn(`[abmetadataGenerator] Invalid chapter`)
|
Logger.warn(`[abmetadataGenerator] Invalid chapter`)
|
||||||
return null
|
return null
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user