mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-01-13 09:28:20 +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
|
let candidate = cleanTitle
|
||||||
|
|
||||||
for (const transformer of titleTransformers) {
|
for (const transformer of titleTransformers)
|
||||||
candidate = candidate.replace(transformer[0], transformer[1]).trim()
|
candidate = candidate.replace(transformer[0], transformer[1]).trim()
|
||||||
if (candidate) {
|
|
||||||
|
if (candidate)
|
||||||
this.candidates.add(candidate)
|
this.candidates.add(candidate)
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
get size() {
|
get size() {
|
||||||
return this.candidates.size
|
return this.candidates.size
|
||||||
|
Loading…
Reference in New Issue
Block a user