mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-01-13 01:18:30 +01:00
[enhamcement] Only add title candidate before and after all transforms
This commit is contained in:
parent
10f5bc8cbe
commit
752bfffb11
@ -206,13 +206,12 @@ class BookFinder {
|
||||
|
||||
let candidate = cleanTitle
|
||||
|
||||
for (const transformer of titleTransformers) {
|
||||
for (const transformer of titleTransformers)
|
||||
candidate = candidate.replace(transformer[0], transformer[1]).trim()
|
||||
if (candidate) {
|
||||
|
||||
if (candidate)
|
||||
this.candidates.add(candidate)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
get size() {
|
||||
return this.candidates.size
|
||||
|
Loading…
Reference in New Issue
Block a user