mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-08-19 00:58:35 +02:00
[enhamcement] Only add title candidate before and after all transforms
This commit is contained in:
parent
10f5bc8cbe
commit
752bfffb11
1 changed files with 4 additions and 5 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue