View Single Post
Old 02-03-2021, 08:10 PM   #22
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
@hradocan: You are overcomplicating it. If you look at how most of the metadata source plugins handle this, the "create_query" will check if there is an ISBN in the identifier and build a query that just uses that. If not, builds the author/title query. Then it does the actual search. If nothing is found, they recurse into "identify" again without passing in the identifiers.

You can look at the Goodreads, KoboBooks and others to see how they handle this.
davidfor is offline   Reply With Quote