![]() |
#1 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 97
Karma: 100000
Join Date: Oct 2014
Location: Ann Arbor, MI USA
Device: Kobo Aura One, Paperwhite PW6
|
Calibre metadata search says epub does not exist
I just loaded KOReader onto a new PW6. I use Calibre to side load epubs. The “Calibre metadata search” function can browse by authors, titles and tags as expected. But when trying to open a book from that function I get an epub “does not exist” error message. I can browse and open books from the “File browser” just fine. Any suggestions on what the problem might be? I do have the “hf” version of KOReader installed.
|
![]() |
![]() |
![]() |
#2 | |
cosiñeiro
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,366
Karma: 2200075
Join Date: Apr 2014
Device: BQ Cervantes 4
|
Quote:
It is expected to work fine if you used calibre to push your books and you didn't change the path of the books on your device You can always rescan for calibre libraries from tools -> calibre -> search settings -> manage libraries. That should prune all the entries that have a mismatch. |
|
![]() |
![]() |
![]() |
#3 | |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 97
Karma: 100000
Join Date: Oct 2014
Location: Ann Arbor, MI USA
Device: Kobo Aura One, Paperwhite PW6
|
Quote:
|
|
![]() |
![]() |
![]() |
#4 |
cosiñeiro
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,366
Karma: 2200075
Join Date: Apr 2014
Device: BQ Cervantes 4
|
Usually you don't push books to specific folders. calibre device drivers do that. It isn't the case with "connect to folder" or pushing books wirelessly using smart device app driver.
If the former double check where calibre put books on your device and attach here a sample json file(2 books is fine) If the later make sure there's a (unix) hidden json file on the folder you choose to put books. Please attach that. |
![]() |
![]() |
![]() |
#5 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 97
Karma: 100000
Join Date: Oct 2014
Location: Ann Arbor, MI USA
Device: Kobo Aura One, Paperwhite PW6
|
I did let Calibre load the books using the "Config this device" settings you see in the attachment. I'm using a USB connection to the PW6. The books are placed exactly where the config asks them to. Into the "documents/Downloads' folder. I'm not sure what json file you are referring to. I'm not that tech savvy.
https://www.mobileread.com/forums/at...1&d=1736888454 |
![]() |
![]() |
![]() |
#6 | ||
cosiñeiro
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,366
Karma: 2200075
Join Date: Apr 2014
Device: BQ Cervantes 4
|
Quote:
![]() It is very likely the scenario "device driver + custom path" is broken as it was never tested. Hopefully it should be easy to fix. Quote:
I think it is stored in /mnt/us/documents by the kindle driver, that would mean "documents" on your usb, IIRC. No idea if using a custom path changes the place where the metadata is stored. I guess it doesn't. That file, with a few entries inside, is all what we need. It must be lpath shennanigans. |
||
![]() |
![]() |
![]() |
#7 | |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 97
Karma: 100000
Join Date: Oct 2014
Location: Ann Arbor, MI USA
Device: Kobo Aura One, Paperwhite PW6
|
Quote:
https://www.mobileread.com/forums/at...1&d=1736896926 |
|
![]() |
![]() |
![]() |
#8 |
cosiñeiro
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,366
Karma: 2200075
Join Date: Apr 2014
Device: BQ Cervantes 4
|
Yay, thank you.
It isn't as easy as I was expecting. It is related to "library discovery", which is just a glorified recusive dir iterator looking for calibre metadata files. We have had the assumption that the root dir of the library contains the metadata, which holds true for stock drivers, connect to folder and wireless. It isn't the case with drivers and custom paths. Metadata might be several directories above documents, so we cannot longer trust on the calibre metadata file path to turn calibre lpaths into absolute paths. It is, of course, fixable. Patches very welcome ![]() Last edited by pazos; 01-14-2025 at 08:37 PM. |
![]() |
![]() |
![]() |
#9 |
cosiñeiro
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,366
Karma: 2200075
Join Date: Apr 2014
Device: BQ Cervantes 4
|
To expand a bit: it isn't difficult either.
Just check if the metadata file is in the default path for each platform/driver and generate the catalog using "default path + lpath". That will cover all drivers with or without custom paths. I'll add it too my todo list, hopefully somebody beats me. |
![]() |
![]() |
![]() |
#10 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 97
Karma: 100000
Join Date: Oct 2014
Location: Ann Arbor, MI USA
Device: Kobo Aura One, Paperwhite PW6
|
|
![]() |
![]() |
![]() |
#11 |
Junior Member
![]() Posts: 2
Karma: 10
Join Date: Jan 2025
Device: PW6
|
Just chiming in to say I'm having this on a PW6 as well. Adding SEARCH_LIBRARY_PATH = "/mnt/us" to defaults.custom.lua had no effect (in fact, that field doesn't even show up in the KOReader advanced options even when I set it). The documents sideload fine -- no changes to the path where things upload. In my case, the calibre metadata thinks they all live at "documents/whateverbook.epub," and that's what both Calibre (and OpenMTP) see them as relative to the root that they mount, but this fails from KOReader's perspective.
|
![]() |
![]() |
![]() |
#12 |
cosiñeiro
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,366
Karma: 2200075
Join Date: Apr 2014
Device: BQ Cervantes 4
|
Thanks for the heads up.
It sounds like calibre metadata catalog + kindle device drivers is broken since its inception. Not sure where you got the SEARCH_LIBRARY_PATH thing but that's old (pre 2020) and doesn't apply anymore. The solution is still the same: generate the book catalog from default platform path + each document's lpath. In the mean time you'll get the results you want with both "connect to folder" or with wireless transfers. |
![]() |
![]() |
![]() |
#13 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 97
Karma: 100000
Join Date: Oct 2014
Location: Ann Arbor, MI USA
Device: Kobo Aura One, Paperwhite PW6
|
|
![]() |
![]() |
![]() |
#14 |
Junior Member
![]() Posts: 2
Karma: 10
Join Date: Jan 2025
Device: PW6
|
|
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
KOReader crashs when trying to search Calibre metadata | Uncle Robin | KOReader | 14 | 05-31-2024 11:31 AM |
Calibre metadata search not working when books are transferred via USB | omin | KOReader | 4 | 03-03-2024 03:40 AM |
Calibre metadata search Showing list of authors | Villard | KOReader | 7 | 02-13-2023 02:18 PM |
replace calibre metadata with epub or mobi metadata | gteague | Library Management | 8 | 11-17-2017 10:40 PM |
Calibre: Metadata Search -> Wildcards possible? | bigbear77 | Library Management | 6 | 11-23-2013 06:44 AM |