mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-11-19 23:28:29 +01:00
[enhamcement] Only add title candidate before and after all transforms
This commit is contained in:
1 parent
10f5bc8cbe
commit
752bfffb11
1 file changed
+4
-5
@@ -206,12 +206,11 @@ 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) {
|
||||
this.candidates.add(candidate)
|
||||
}
|
||||
}
|
||||
|
||||
if (candidate)
|
||||
this.candidates.add(candidate)
|
||||
}
|
||||
|
||||
get size() {
|
||||
|
||||
Reference in new issue
Block a user