Mobileread
KOReader Calibre Search Adjustment
#1  Incanus 02-14-2021, 07:44 AM
When I try KOReader Calibre Search to use tags or series metadata, the search button prompts the use of the internal memory as search drive/directory.

However, my Calibre library is on a (card drive)\Calibre directory on my external SD card.

How can I change that setting so it will search on my external SD card?

Awaiting your kind reply,

Enviado desde mi SM-G950F mediante Tapatalk
Reply 

#2  pazos 02-14-2021, 01:08 PM
Quote Incanus
When I try KOReader Calibre Search to use tags or series metadata, the search button prompts the use of the internal memory as search drive/directory.

However, my Calibre library is on a (card drive)\Calibre directory on my external SD card.

How can I change that setting so it will search on my external SD card?

Awaiting your kind reply,

Enviado desde mi SM-G950F mediante Tapatalk
It is already supported. I added it in mid-december. See https://github.com/koreader/koreader/pull/6996.

Please use a recent version (v2021.01.1 or nightly) and rescan your calibre libraries. It should find libraries in both internal partiton and sdcard.
Reply 

#3  pazos 02-14-2021, 01:11 PM
Now, if you want to use the calibre wireless client, the solution won't work for you. Apps on android cannot use the filesystem on the external sdcard

And that's why when you set a new wireless inbox you will always be prompted to place it in the internal partition.

Blame Google, not me
Reply 

#4  Incanus 02-14-2021, 03:19 PM
The thing is, with Calibre Companion I'm storing my /Calibre library on the SD Card without any problems.

KOReader reads e-books from it: it also browse the files on it (if you click the cabinet icon): the (newly installed) 2021.01.01 android installed version does (I'm using a Boyue Likebook Mars on Android 8.1.0) and so the previous versions did too.

However, when searching, the new 2021.01.01 version still won't find the (sd card)/Calibre library.

Am I missing something here?

Thanks in advance,

Enviado desde mi SM-G950F mediante Tapatalk
Reply 

#5  NiLuJe 02-14-2021, 03:48 PM
Read-only vs. read+write access, and a giant pile of unmaintainable hacks.

----

As far as the Calibre metadata search goes, when you said "searching", did you mean an actual search directly, or the "scan for a Calibre library" in the Plugin's settings, as @pazos mentioned?
Reply 

#6  Incanus 02-14-2021, 03:57 PM
Both (I think):

Calibre -> Search settings -> manage libraries

and

Find a book via calibre metadata

If KOReader browses the (sd card)/Calibre files and also reads the e-books therein, why the above won't work?

Curious,

Enviado desde mi SM-G950F mediante Tapatalk
Reply 

#7  NiLuJe 02-14-2021, 05:57 PM
Is there actually a Calibre metadata file on the SD card "Library"?
Reply 

#8  pazos 02-14-2021, 06:21 PM
Ah! You want to scan CC library? In that case a big NOPE. CC doesn't use metadata.calibre or deviceinfo.calibre. There's no way for KOReader (or any other program) to know that these books belong to a calibre library.

To be clear: that's the status on android for this plugin

Works from external sdcard
  1. Scan calibre libraries created with calibre (with folder driver, MTP or device drivers)

Works from internal sdcard and/or phone partition
  1. Scan calibre libraries created with calibre (with folder driver, MTP or device drivers)
  2. Send books and manage the library wirelessly from calibre.

Will never work
  1. Repurpose metadata from formats other than calibre's default json scheme

Quote Incanus
The thing is, with Calibre Companion I'm storing my /Calibre library on the SD Card without any problems.
Yes, apps can write documents on the sdcard using the Storage Access Framework. Sadly granting permissions to write on a specific directory won't give you access to the filesystem. And KOReader relies a lot on filesystem access. In fact it uses the same code in all the platforms it supports.

Writting glue code that emulates filesystem access on top of crappy google stuff is, IMHO, out of the scope of the program.

Of course if somebody comes with a sane patch we can merge it but I have the feeling that it is easier to write a new program from scratch for android using the same libraries that KOReader uses than proxy'ing the crappy storage framework to behave like a proper filesystem.
Reply 

#9  Incanus 02-14-2021, 06:46 PM
Well, this means that I can keep using CC for search & sort my Calibre library and still enjoy KOReader as a good reader.

If it ever comes to the point where CC is no longer a library management option, I now know how to get such functionality from KOReader.

That's good enough for me.

Thank you all for your prompt replies and most valuable information!

Kind regards,

Enviado desde mi SM-G950F mediante Tapatalk
Reply 

Today's Posts | Search this Thread | Login | Register