Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Development

Notices

Reply
 
Thread Tools Search this Thread
Old Yesterday, 10:46 PM   #1
plazma
Member
plazma began at the beginning.
 
Posts: 20
Karma: 10
Join Date: Feb 2014
Device: kindle paperwhite
[SOLVED] Metadata not showing in results

Hi, I'm working on Metadata (Source) plugin, and the source I'm using does not list ISBNs for every book.

Now, what happens is, that when I don't have the ISBN, I don't call the `self.plugin.cache_isbn_to_identifier` method. And if I don't do that, then the result is not listed, even if I add it to the result_queue.

When I create some dummy ISBN and call the cache method, then I see the result. But then the ISBN can be overwritten (if it already exists). Or, if I create an isbn that is bad (e.g. contains characters), then after the data is accepted, it shows that the ISBN is wrong (because that identifier uses special checks).

So, my question is, if the source for the book's metadata does not have the ISBN listed, what is the correct way to handle this, if I want it to be listed in the results? I couldn't find any documentation around this.

Last edited by plazma; Yesterday at 11:49 PM.
plazma is offline   Reply With Quote
Old Yesterday, 10:56 PM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,514
Karma: 28548962
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
There is no requirement at all that results have isbns. You likely have some other issue.
kovidgoyal is online now   Reply With Quote
Old Yesterday, 11:13 PM   #3
plazma
Member
plazma began at the beginning.
 
Posts: 20
Karma: 10
Join Date: Feb 2014
Device: kindle paperwhite
What other issues can be there?

And why the result shows up when I add the ISBN and does not show up when it is not there?

Any way how can I debug why the result does not show up?
plazma is offline   Reply With Quote
Old Yesterday, 11:23 PM   #4
plazma
Member
plazma began at the beginning.
 
Posts: 20
Karma: 10
Join Date: Feb 2014
Device: kindle paperwhite
This is a screenshot from the results and the debug console. It founds 4 results, but only 3 are shown. The one missing isbn is not shown. When I generate a dummy isbn, it will show up. The only difference is, that I set the mi.isbn and call the cache_isbn_to_identifier method. Even if I call the cache_isbn_to_identifier, if the mi.isbn is not set, it will not show up.

https://pasteboard.co/iwmtkHP8tOqU.png



At the end, it says this:

```
************************************************** ******************************
The identify phase took 9.04 seconds
The longest time (8.853095) was taken by: Martinus.sk
Merging results from different sources
We have 3 merged results, merging took: 0.00 seconds
```

So it somehow merged the results? But why?

Last edited by plazma; Yesterday at 11:37 PM.
plazma is offline   Reply With Quote
Old Yesterday, 11:34 PM   #5
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,514
Karma: 28548962
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
The final list of results is *merged*. When you specify a rando isbn you prevent that merge from happening. Turn on the option to keep more than one netry per source to reduce merging.
kovidgoyal is online now   Reply With Quote
Old Yesterday, 11:37 PM   #6
plazma
Member
plazma began at the beginning.
 
Posts: 20
Karma: 10
Join Date: Feb 2014
Device: kindle paperwhite
Found it, there is

```
prefer_results_with_isbn = False
```
Which can be set in the plugin.... oh man.

https://manual.calibre-ebook.com/plu...ults_with_isbn

Last edited by plazma; Yesterday at 11:41 PM.
plazma is offline   Reply With Quote
Reply

Tags
isbn, metadata, source


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Dictionary Showing No Results Drybonz Amazon Kindle 2 01-23-2025 11:59 PM
Metadata plugun multiple results dandman Development 3 05-16-2024 05:07 PM
Amazon Store not showing all results? JudahsShadow Calibre 3 07-13-2015 06:59 AM
Search results are showing up differently BunnyGal Library Management 5 07-11-2014 01:35 PM
Android Market not showing all results on NC mariel9898 Nook Developer's Corner 5 02-27-2011 12:38 AM


All times are GMT -4. The time now is 11:20 AM.


MobileRead.com is a privately owned, operated and funded community.