mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2024-12-20 19:06:06 +01:00
Update regex for volume scanner
This commit is contained in:
parent
3ba3069894
commit
ea61400329
@ -169,7 +169,7 @@ function getAudiobookDataFromDir(abRootPath, dir, parseSubtitle = false) {
|
|||||||
*/
|
*/
|
||||||
var volumeNumber = null
|
var volumeNumber = null
|
||||||
if (series) {
|
if (series) {
|
||||||
var volumeMatch = title.match(/(-(?: ?))?\b((?:Book|Vol.?|Volume) (\d{1,3}))\b((?: ?)-)?/i)
|
var volumeMatch = title.match(/(-? ?)\b((?:Book|Vol.?|Volume) (\d{1,3}))\b( ?-?)/i)
|
||||||
if (volumeMatch && volumeMatch.length > 3 && volumeMatch[2] && volumeMatch[3]) {
|
if (volumeMatch && volumeMatch.length > 3 && volumeMatch[2] && volumeMatch[3]) {
|
||||||
volumeNumber = volumeMatch[3]
|
volumeNumber = volumeMatch[3]
|
||||||
var replaceChunk = volumeMatch[2]
|
var replaceChunk = volumeMatch[2]
|
||||||
|
Loading…
Reference in New Issue
Block a user