audiobookshelf icon indicating copy to clipboard operation
audiobookshelf copied to clipboard

[Enhancement]: Fuzzy Matching

Open jt196 opened this issue 3 years ago • 3 comments

Describe the feature/enhancement

Adding a new library to your set up, and I'm finding that the match patterns are quite a lot stricter than I think they have to be.

e.g.

Dots after abbreviated middle names:

  • James SA Corey + Expanse book title no match
  • James S.A. Corey + Expanse book title match

Book Title Match, author different

  • Benedict Cumberbatch Reads Sherlock Holmes' Rediscovered Railway Stories + Arthur Conan Doyle no match
  • Benedict Cumberbatch Reads Sherlock Holmes' Rediscovered Railway Stories + John Taylor (the actual author!) match.

I get the latter, but it's a very long name and seems like there should at least return some results here.

The Plex audiobooks metadata agent returns with a percentage match based on several criteria. If you're worried about your auto-matching breaking with fuzzy matching, why not just have a threshold?

jt196 avatar Mar 08 '22 11:03 jt196

@Albuca, I think the Audnexus Plex metadata agent does a pretty good job of polling the Audible API - I think it's less strict than your search. Don't know if you're familiar with Python, but it's a pretty simple setup with just a few files. Think they use some sort of scoring system to evaluate the returned results.

jt196 avatar Apr 26 '22 12:04 jt196

@jt196 Audnexus has been being used for all audible searches for a few versions now

advplyr avatar Jun 18 '22 22:06 advplyr

@advplyr, great stuff. Did double check the test searches above and neither returned results. Guess the Sherlock one isn't the biggest deal, but James SA Corey. Is there a way to dial down the fuzziness? Even if it didn't auto match below a certain threshold that would be useful in the manual search to have less accurate results returned.

jt196 avatar Jun 19 '22 09:06 jt196

This was implemented pretty well for the next release. PR https://github.com/advplyr/audiobookshelf/pull/2099

advplyr avatar Sep 26 '23 21:09 advplyr

Added in v2.4.4

advplyr avatar Sep 30 '23 21:09 advplyr