View Single Post
Old 06-18-2023, 06:42 AM   #114
nurbles62
Junior Member
nurbles62 began at the beginning.
 
Posts: 9
Karma: 10
Join Date: Jun 2018
Device: Kindle for Samsung Tablets
Common Titles May Not Match

Quote:
Originally Posted by kiwidude View Post
The code only looks at the first three matches, that is why . I can increase it a little higher the next time I fiddle with this plugin, but usually if a book is not the first couple of matches the likelihood of it being further down the list is increasingly slim.
I was curious, so I counted and found that there are currently 29 books with the title "Seeing Red". The JSON results that I've looked at that result from the URL in the log don't appear to be sorted in any meaningful way and, in fact, have changed sequence between yesterday and today!

Since book titles may (and often are) duplicated, it seems that checking all of the results may need to at least be an option if the plugin is really trying to find a match. After all, how much longer would checking even an extra 50 titles/authors take? An extra few milliseconds? A whole extra second? I would think the URL query/response is the big time consumer, not the code that does the comparisons. Am I wrong?
nurbles62 is offline   Reply With Quote