mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-06-07 11:12:45 +02:00
Update:Max levenshtein distance for matching author names to 3 #572
This commit is contained in:
@@ -27,7 +27,7 @@ class Audnexus {
|
||||
})
|
||||
}
|
||||
|
||||
async findAuthorByName(name, maxLevenshtein = 2) {
|
||||
async findAuthorByName(name, maxLevenshtein = 3) {
|
||||
Logger.debug(`[Audnexus] Looking up author by name ${name}`)
|
||||
var asins = await this.authorASINsRequest(name)
|
||||
var matchingAsin = asins.find(obj => levenshteinDistance(obj.name, name) <= maxLevenshtein)
|
||||
|
||||
Reference in New Issue
Block a user