mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2024-12-20 19:06:06 +01:00
Make series sequence cleanup slighlty less aggressive
This commit is contained in:
parent
77559d29bb
commit
29e9216bb1
@ -30,9 +30,7 @@ class Audible {
|
||||
cleanSeriesSequence(seriesName, sequence) {
|
||||
if (!sequence) return ''
|
||||
let updatedSequence = sequence.replace(/Book /, '').trim()
|
||||
if (updatedSequence.includes(' ')) {
|
||||
updatedSequence = updatedSequence.split(' ').shift().replace(/,$/, '')
|
||||
}
|
||||
updatedSequence = updatedSequence.replace(/(\d+)(, .*)/, '$1').trim()
|
||||
if (sequence !== updatedSequence) {
|
||||
Logger.debug(`[Audible] Series "${seriesName}" sequence was cleaned from "${sequence}" to "${updatedSequence}"`)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user