findBestMatch

fun findBestMatch(): GoodReadsSearchResult

Search and try to find the best match for the given title (and maybe authors) on GoodReads.

For a result to be a match, the following conditions must apply:

  • the title must be an "exact match" (subtitles ignored, that is content after ":")

  • the author(s) must all be present in the list of authors, in the correct order, in the form "FirstName LastName"

Note that all comparisons are diacritics, symbols, space and casing insensitive.

Throws

if no book matching title (and author) is found (use kotlin.runCatching to get null instead)

Sources

Link copied to clipboard