Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > KOReader

Notices

Reply
 
Thread Tools Search this Thread
Old 01-13-2025, 09:08 PM   #1
jlinear
Connoisseur
jlinear rocks like Gibraltar!jlinear rocks like Gibraltar!jlinear rocks like Gibraltar!jlinear rocks like Gibraltar!jlinear rocks like Gibraltar!jlinear rocks like Gibraltar!jlinear rocks like Gibraltar!jlinear rocks like Gibraltar!jlinear rocks like Gibraltar!jlinear rocks like Gibraltar!jlinear rocks like Gibraltar!
 
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.
jlinear is offline   Reply With Quote
Old 01-14-2025, 07:15 AM   #2
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,366
Karma: 2200075
Join Date: Apr 2014
Device: BQ Cervantes 4
Quote:
Originally Posted by jlinear View Post
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.
That functionality is pretty basic. We just read a json file.

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.
pazos is offline   Reply With Quote
Old 01-14-2025, 01:29 PM   #3
jlinear
Connoisseur
jlinear rocks like Gibraltar!jlinear rocks like Gibraltar!jlinear rocks like Gibraltar!jlinear rocks like Gibraltar!jlinear rocks like Gibraltar!jlinear rocks like Gibraltar!jlinear rocks like Gibraltar!jlinear rocks like Gibraltar!jlinear rocks like Gibraltar!jlinear rocks like Gibraltar!jlinear rocks like Gibraltar!
 
Posts: 97
Karma: 100000
Join Date: Oct 2014
Location: Ann Arbor, MI USA
Device: Kobo Aura One, Paperwhite PW6
Quote:
Originally Posted by pazos View Post
That functionality is pretty basic. We just read a json file.

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.
I have tried rescanning and it doesn't help. I'm not changing the path of books. I've been trying to sort this out so I deleted the few books I had installed and started from scratch. I loaded 2 books into the "documents/Downloads" folder. They are properly installed and I see them in the file browser. Calibre rescanning says there are two book. So far so good. A "Calibre metadata search" by author, title and tags works fine. But when I try to open a book from there I get an epub "does not exist" error message. I have a older 2021 firmware updated Paperwhite that works just fine. Perhaps someone else will run into the problem and this will get sorted out. Thanks for the response.
jlinear is offline   Reply With Quote
Old 01-14-2025, 03:13 PM   #4
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,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.
pazos is offline   Reply With Quote
Old 01-14-2025, 05:16 PM   #5
jlinear
Connoisseur
jlinear rocks like Gibraltar!jlinear rocks like Gibraltar!jlinear rocks like Gibraltar!jlinear rocks like Gibraltar!jlinear rocks like Gibraltar!jlinear rocks like Gibraltar!jlinear rocks like Gibraltar!jlinear rocks like Gibraltar!jlinear rocks like Gibraltar!jlinear rocks like Gibraltar!jlinear rocks like Gibraltar!
 
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
Attached Thumbnails
Click image for larger version

Name:	Cal.jpg
Views:	83
Size:	73.7 KB
ID:	213082  
jlinear is offline   Reply With Quote
Old 01-14-2025, 06:45 PM   #6
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,366
Karma: 2200075
Join Date: Apr 2014
Device: BQ Cervantes 4
Quote:
Originally Posted by jlinear View Post
I did let Calibre load the books using the "Config this device" settings you see in the attachment.
Ah, I didn't know that

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:
Originally Posted by jlinear View Post
I'm not sure what json file you are referring to. I'm not that tech savvy.
A file, named "metadata.calibre", either on the top "folder" of your usb or in any subfolder up to where your documents are stored.

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.
pazos is offline   Reply With Quote
Old 01-14-2025, 07:24 PM   #7
jlinear
Connoisseur
jlinear rocks like Gibraltar!jlinear rocks like Gibraltar!jlinear rocks like Gibraltar!jlinear rocks like Gibraltar!jlinear rocks like Gibraltar!jlinear rocks like Gibraltar!jlinear rocks like Gibraltar!jlinear rocks like Gibraltar!jlinear rocks like Gibraltar!jlinear rocks like Gibraltar!jlinear rocks like Gibraltar!
 
Posts: 97
Karma: 100000
Join Date: Oct 2014
Location: Ann Arbor, MI USA
Device: Kobo Aura One, Paperwhite PW6
Quote:
Originally Posted by pazos View Post
A file, named "metadata.calibre", either on the top "folder" of your usb or in any subfolder up to where your documents are stored.

I think it is stored in /mnt/us/documents by the kindle driver, that would mean "documents" on your usb, IIRC.
Here is the metadata.calibre. It was in the root. Upload kept complaining that it was an invalid file so I gave it a txt extension. Thanks for your help.

https://www.mobileread.com/forums/at...1&d=1736896926
Attached Files
File Type: txt metadata_calibre.txt (92.9 KB, 44 views)
jlinear is offline   Reply With Quote
Old 01-14-2025, 08:34 PM   #8
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,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.
pazos is offline   Reply With Quote
Old 01-14-2025, 08:43 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,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.
pazos is offline   Reply With Quote
Old 01-14-2025, 09:28 PM   #10
jlinear
Connoisseur
jlinear rocks like Gibraltar!jlinear rocks like Gibraltar!jlinear rocks like Gibraltar!jlinear rocks like Gibraltar!jlinear rocks like Gibraltar!jlinear rocks like Gibraltar!jlinear rocks like Gibraltar!jlinear rocks like Gibraltar!jlinear rocks like Gibraltar!jlinear rocks like Gibraltar!jlinear rocks like Gibraltar!
 
Posts: 97
Karma: 100000
Join Date: Oct 2014
Location: Ann Arbor, MI USA
Device: Kobo Aura One, Paperwhite PW6
Quote:
Originally Posted by pazos View Post
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.
That's exactly what I thought it was.
jlinear is offline   Reply With Quote
Old 01-25-2025, 03:06 PM   #11
wcohen
Junior Member
wcohen began at the beginning.
 
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.
wcohen is offline   Reply With Quote
Old 01-26-2025, 10:27 AM   #12
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,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.
pazos is offline   Reply With Quote
Old 01-28-2025, 10:15 AM   #13
jlinear
Connoisseur
jlinear rocks like Gibraltar!jlinear rocks like Gibraltar!jlinear rocks like Gibraltar!jlinear rocks like Gibraltar!jlinear rocks like Gibraltar!jlinear rocks like Gibraltar!jlinear rocks like Gibraltar!jlinear rocks like Gibraltar!jlinear rocks like Gibraltar!jlinear rocks like Gibraltar!jlinear rocks like Gibraltar!
 
Posts: 97
Karma: 100000
Join Date: Oct 2014
Location: Ann Arbor, MI USA
Device: Kobo Aura One, Paperwhite PW6
Quote:
Originally Posted by pazos View Post
In the mean time you'll get the results you want with both "connect to folder" or with wireless transfers.
I just tried the wireless transfer option you suggested and it works as expected. Thanks.
jlinear is offline   Reply With Quote
Old 01-29-2025, 08:29 PM   #14
wcohen
Junior Member
wcohen began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Jan 2025
Device: PW6
Quote:
Originally Posted by jlinear View Post
I just tried the wireless transfer option you suggested and it works as expected. Thanks.
Confirmed for me too. Many thanks.
wcohen is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
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


All times are GMT -4. The time now is 02:27 AM.


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