View Single Post
Old 10-15-2021, 01:36 PM   #9
pazos
cosiņeiro
pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.pazos ought to be getting tired of karma fortunes by now.
 
Posts: 1,406
Karma: 2451781
Join Date: Apr 2014
Device: BQ Cervantes 4
A quick solution would be:

Don't mix wireless and cable transfers. They're not the same.

When you send books via USB calibre can see the contents of your ereader and scan the books there. That should be always 100% accurate, no matter if you're using Nickel, KOReader, plato or Inkbox. Books are placed in "/mnt/onboard", usually by author but that's a preference you setup on calibre.

When you send books wirelessly calibre can't see the contents of your device. It request that info to the client. The client will report the books it knows, that will match or not the books your device has.

There's no way to know which books are indeed in the device without scanning its storage recursively, which is painfully slow. Our approach is:

A calibre library stored on the device has a json file which contains certain metadata as well as file paths. When we are in charge of that file (that happens *only* on wireless transfers) we recreate the same file on the folder you selected as the inbox for wireless transfers.

The other part of the cake, the metadata search, works by looking at these json files and returns matches by tags/series/authors/paths/titles. Since it doesn't care about who wrote the file on the first place it will work with both usb transfers and wireless transfers.

In short:

1. metadata search will work with multiple calibre libraries stored on various folders of your device.

2. with default calibre/ko setup KOReader will only report books that were transfered using wireless

3. you can change default calibre setup by disabling your device driver on calibre and using "connect to folder". Then connect to the same folder you defined as your inbox for wireless transfers. That way calibre will update the json file on wired transfers and koreader will do the same on wireless ones.

4. using your device driver (kobo/kindle/bq...) and pointing your inbox dir to the folder used by calibre on your device is possible but not recommended. In fact you'll get a warning message if you try to set the inbox on your platform defaults.
pazos is offline   Reply With Quote