mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-12-24 12:49:38 +00:00
Update:Parsing sequence from folder will strip leading zeros #562
This commit is contained in:
parent
f2e16017f6
commit
a8d5b543d7
2 changed files with 4 additions and 2 deletions
|
|
@ -260,6 +260,10 @@ function getBookDataFromDir(folderPath, relPath, parseSubtitle = false) {
|
|||
title = title.replace(replaceChunk, '').trim()
|
||||
}
|
||||
}
|
||||
|
||||
if (volumeNumber != null && !isNaN(volumeNumber)) {
|
||||
volumeNumber = String(Number(volumeNumber)) // Strips leading zeros
|
||||
}
|
||||
}
|
||||
|
||||
var publishedYear = null
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue