mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2024-11-07 16:44:16 +01:00
Remove some unused code in AuthorCandidates.add
This commit is contained in:
parent
786df450e5
commit
f8f555b4b6
@ -294,23 +294,9 @@ class BookFinder {
|
||||
}
|
||||
|
||||
add(author) {
|
||||
const authorTransformers = []
|
||||
|
||||
// Main variant
|
||||
const cleanAuthor = this.bookFinder.cleanAuthorForCompares(author).trim()
|
||||
if (!cleanAuthor) return false
|
||||
if (!cleanAuthor) return
|
||||
this.candidates.add(cleanAuthor)
|
||||
|
||||
let candidate = cleanAuthor
|
||||
|
||||
for (const transformer of authorTransformers) {
|
||||
candidate = candidate.replace(transformer[0], transformer[1]).trim()
|
||||
if (candidate) {
|
||||
this.candidates.add(candidate)
|
||||
}
|
||||
}
|
||||
|
||||
return true
|
||||
}
|
||||
|
||||
get size() {
|
||||
|
Loading…
Reference in New Issue
Block a user