Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > KOReader

Notices

Reply
 
Thread Tools Search this Thread
Old 06-08-2026, 04:18 AM   #1
SinTan1729
Junior Member
SinTan1729 began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Jun 2026
Device: Kobo Clara BW
Created a patch for KOReader Collections automation

https://github.com/SinTan1729/koread...ollections.lua

This patch creates and managed collections using Calibre custom columns. I've set up my Calibre to create collections based on that on my Kobo's stock interface. So, I decided to replicate that on KOReader as well.

This is my first KOReader patch, so any feedback is welcome.

Check out the README for details.
https://github.com/SinTan1729/koreader-patches

Last edited by SinTan1729; 06-08-2026 at 04:22 AM. Reason: Didn't realize this wasn't markdown
SinTan1729 is offline   Reply With Quote
Old 06-22-2026, 03:28 AM   #2
Fantomas
Junior Member
Fantomas began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Oct 2016
Device: Kobo Aura HD
I installed your patch, however it has not produced any collections on my device.

- Checked patch management. "Patches executed: 1" (only patch I have installed)
- It is listed in the "After setup" section and has a tick

I had modified the lua before installing - CUSTOM_COLUMN_USED = '#myshelves'
(this is a holdover from when I previously had a Kobo and I still make use of it in Calibre)

I am on a Kindle Paperwhite 11th Gen that was jailbroken with nosebleed. (in case this makes any difference)

I currently have 9 books. Am still going through settings things up, having only jailbroken the device yesterday.

Please advise if there is any additional info required. Also if you would like me to raise an issue on the github as opposed to communicating here.

Thanks in advance
Fantomas is offline   Reply With Quote
Old 06-26-2026, 05:25 AM   #3
SinTan1729
Junior Member
SinTan1729 began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Jun 2026
Device: Kobo Clara BW
Opening GitHub issue would be helpful. We can continue the conversation there, but my first guess would be that you may be syncing from Calibre over WiFi. Unless a specific modified version of the Calibre plugin is installed, it won't work. (Idk about it, don't use it, sorry.) But it should work if you push the files and update the metadata over USB. Since you have the files already, try running update cached metadata from Calibre, over USB.
SinTan1729 is offline   Reply With Quote
Old 06-26-2026, 05:59 PM   #4
SinTan1729
Junior Member
SinTan1729 began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Jun 2026
Device: Kobo Clara BW
It's being discussed here: https://github.com/SinTan1729/koreader-patches/issues/1
SinTan1729 is offline   Reply With Quote
Old 06-27-2026, 08:06 AM   #5
Lys
Addict
Lys ought to be getting tired of karma fortunes by now.Lys ought to be getting tired of karma fortunes by now.Lys ought to be getting tired of karma fortunes by now.Lys ought to be getting tired of karma fortunes by now.Lys ought to be getting tired of karma fortunes by now.Lys ought to be getting tired of karma fortunes by now.Lys ought to be getting tired of karma fortunes by now.Lys ought to be getting tired of karma fortunes by now.Lys ought to be getting tired of karma fortunes by now.Lys ought to be getting tired of karma fortunes by now.Lys ought to be getting tired of karma fortunes by now.
 
Posts: 201
Karma: 727278
Join Date: Dec 2022
Location: Not in an English speaking country
Device: (Too many) Kobo(s)
Does this work with only one custom column, or is it possible to create collections from multiple custom columns?
Lys is offline   Reply With Quote
Old 07-02-2026, 10:02 PM   #6
SinTan1729
Junior Member
SinTan1729 began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Jun 2026
Device: Kobo Clara BW
Only one. But it should be easy enough modify it to support multiple columns. I think it gets messy when they have the same collection names. How exactly are you using multiple columns, and what do you want the patch to do with these collisions? I may be able to help you make the changes.
SinTan1729 is offline   Reply With Quote
Old 07-03-2026, 02:09 PM   #7
Lys
Addict
Lys ought to be getting tired of karma fortunes by now.Lys ought to be getting tired of karma fortunes by now.Lys ought to be getting tired of karma fortunes by now.Lys ought to be getting tired of karma fortunes by now.Lys ought to be getting tired of karma fortunes by now.Lys ought to be getting tired of karma fortunes by now.Lys ought to be getting tired of karma fortunes by now.Lys ought to be getting tired of karma fortunes by now.Lys ought to be getting tired of karma fortunes by now.Lys ought to be getting tired of karma fortunes by now.Lys ought to be getting tired of karma fortunes by now.
 
Posts: 201
Karma: 727278
Join Date: Dec 2022
Location: Not in an English speaking country
Device: (Too many) Kobo(s)
Quote:
Originally Posted by SinTan1729 View Post
Only one. But it should be easy enough modify it to support multiple columns. I think it gets messy when they have the same collection names. How exactly are you using multiple columns, and what do you want the patch to do with these collisions? I may be able to help you make the changes.
My main gripe with KoReader is I can't find a way to set it up collections in the same automatic way I can do using calibre + KoboTouch plugin.

I currently use 6 different custom columns to create collections:
  • Book Language
  • Book Length (Novel, Novella, Short Stories, Articles, etc)
  • Genre
  • Reading List
  • Sub-Genre (when needed)
  • Awards

And since I have books in the thousands, having collections is the best way for me to navigate through (a folders-based navigation system is basically useless to me, since typically a book of mine belongs to at least 3/4 different collections)

So I was curious, if I could try this plugin out and make KoReader usable for my user-case (but please, don't waste time on my behalf, if it's something that may cause more issues than not )
Lys is offline   Reply With Quote
Old 07-04-2026, 10:32 AM   #8
SinTan1729
Junior Member
SinTan1729 began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Jun 2026
Device: Kobo Clara BW
As long as the names of the collections do not collide, it should be fairly trivial to add. For your usecase, that seems to be the case. I'll make the changes and let you know.
SinTan1729 is offline   Reply With Quote
Old 07-04-2026, 11:28 AM   #9
SinTan1729
Junior Member
SinTan1729 began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Jun 2026
Device: Kobo Clara BW
It should work now. Multiple column names can be provided using an array. Colliding names from different columns will be merged into a single collection. Hope this works for your usecase.
SinTan1729 is offline   Reply With Quote
Old 07-04-2026, 11:46 AM   #10
Lys
Addict
Lys ought to be getting tired of karma fortunes by now.Lys ought to be getting tired of karma fortunes by now.Lys ought to be getting tired of karma fortunes by now.Lys ought to be getting tired of karma fortunes by now.Lys ought to be getting tired of karma fortunes by now.Lys ought to be getting tired of karma fortunes by now.Lys ought to be getting tired of karma fortunes by now.Lys ought to be getting tired of karma fortunes by now.Lys ought to be getting tired of karma fortunes by now.Lys ought to be getting tired of karma fortunes by now.Lys ought to be getting tired of karma fortunes by now.
 
Posts: 201
Karma: 727278
Join Date: Dec 2022
Location: Not in an English speaking country
Device: (Too many) Kobo(s)
I'll try it out!
And thank you for your quick answer and implementation!
Lys is offline   Reply With Quote
Old 07-08-2026, 05:48 PM   #11
Uncle Robin
Diligent dilettante
Uncle Robin ought to be getting tired of karma fortunes by now.Uncle Robin ought to be getting tired of karma fortunes by now.Uncle Robin ought to be getting tired of karma fortunes by now.Uncle Robin ought to be getting tired of karma fortunes by now.Uncle Robin ought to be getting tired of karma fortunes by now.Uncle Robin ought to be getting tired of karma fortunes by now.Uncle Robin ought to be getting tired of karma fortunes by now.Uncle Robin ought to be getting tired of karma fortunes by now.Uncle Robin ought to be getting tired of karma fortunes by now.Uncle Robin ought to be getting tired of karma fortunes by now.Uncle Robin ought to be getting tired of karma fortunes by now.
 
Uncle Robin's Avatar
 
Posts: 3,747
Karma: 52758936
Join Date: Sep 2019
Location: in my mind
Device: Kobo Sage; Kobo Libra Colour
Quote:
Originally Posted by Lys View Post
My main gripe with KoReader is I can't find a way to set it up collections in the same automatic way I can do using calibre + KoboTouch plugin.

I currently use 6 different custom columns to create collections:
  • Book Language
  • Book Length (Novel, Novella, Short Stories, Articles, etc)
  • Genre
  • Reading List
  • Sub-Genre (when needed)
  • Awards

And since I have books in the thousands, having collections is the best way for me to navigate through (a folders-based navigation system is basically useless to me, since typically a book of mine belongs to at least 3/4 different collections)

So I was curious, if I could try this plugin out and make KoReader usable for my user-case (but please, don't waste time on my behalf, if it's something that may cause more issues than not )

This thread is very interesting, as I begin to explore collections on KOReader. But after reading the Calibre documentation on creating custom columns, I's still struggling to grok how to create them based on tags. What I'd love is to create custom columns for my TBR and current reading lists and then use this plugin (or one like it) to automatically update those collections as the status of my library changes. How do I do this?
Uncle Robin is offline   Reply With Quote
Old 07-11-2026, 06:22 AM   #12
Lys
Addict
Lys ought to be getting tired of karma fortunes by now.Lys ought to be getting tired of karma fortunes by now.Lys ought to be getting tired of karma fortunes by now.Lys ought to be getting tired of karma fortunes by now.Lys ought to be getting tired of karma fortunes by now.Lys ought to be getting tired of karma fortunes by now.Lys ought to be getting tired of karma fortunes by now.Lys ought to be getting tired of karma fortunes by now.Lys ought to be getting tired of karma fortunes by now.Lys ought to be getting tired of karma fortunes by now.Lys ought to be getting tired of karma fortunes by now.
 
Posts: 201
Karma: 727278
Join Date: Dec 2022
Location: Not in an English speaking country
Device: (Too many) Kobo(s)
Quote:
Originally Posted by Uncle Robin View Post
This thread is very interesting, as I begin to explore collections on KOReader. But after reading the Calibre documentation on creating custom columns, I's still struggling to grok how to create them based on tags. What I'd love is to create custom columns for my TBR and current reading lists and then use this plugin (or one like it) to automatically update those collections as the status of my library changes. How do I do this?
I'm not sure I got your scenario correctly, but let's say, you have a column (y/n) that marks the books you have selected for your TBR (#tbr column).
Then say you have a column for your reading status (#status column).

Now, you want that your "current TBR" (#currenttbr column, created from other columns) list is for books included in the original TBR column, but with a status different from "Finished".

You can use a template like this:

Code:
program: 

if $#status == "Finished"
then ""
else if $#tbr == "Y"
then
"TBR"
fi
fi
If a book is marked as Finished -> Current TBR column will be empty
If a book is not marked as Finished -> If the book is included in your TBR column, it will be marked as "TBR" in the current TBR column.

I'm not really good at coding in template language, and I'm sure there are a trillion better ways to code this case, but it should give you an idea.
In calibre sub-forumn, in the library management section, there are tons of post/threads dealing with custom columns built through a template that could help you
Lys is offline   Reply With Quote
Old 07-11-2026, 07:54 AM   #13
Uncle Robin
Diligent dilettante
Uncle Robin ought to be getting tired of karma fortunes by now.Uncle Robin ought to be getting tired of karma fortunes by now.Uncle Robin ought to be getting tired of karma fortunes by now.Uncle Robin ought to be getting tired of karma fortunes by now.Uncle Robin ought to be getting tired of karma fortunes by now.Uncle Robin ought to be getting tired of karma fortunes by now.Uncle Robin ought to be getting tired of karma fortunes by now.Uncle Robin ought to be getting tired of karma fortunes by now.Uncle Robin ought to be getting tired of karma fortunes by now.Uncle Robin ought to be getting tired of karma fortunes by now.Uncle Robin ought to be getting tired of karma fortunes by now.
 
Uncle Robin's Avatar
 
Posts: 3,747
Karma: 52758936
Join Date: Sep 2019
Location: in my mind
Device: Kobo Sage; Kobo Libra Colour
Thank you! That gives me something to start with and an idea of the framework needed
Uncle Robin is offline   Reply With Quote
Old 07-13-2026, 09:58 PM   #14
robowolf
Member
robowolf began at the beginning.
 
Posts: 21
Karma: 10
Join Date: Oct 2012
Device: Kobo Clara
Thank you for this patch! I have a Boox Go Color 7 Gen 2, and I can report that this patch has successfully created a collections column for the device in Calibre. I didn't have a "patches" folder yet, but I was able to create one to put the patch in.

This does not sync collections in Calibre with the device itself, however, is this correct? That is, I cannot create/edit collections in Calibre and then sync them to the device's collections column.
robowolf is offline   Reply With Quote
Reply

Tags
first post, patches


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Kobo Libra2: template collections not created chaley Devices 3 06-08-2022 12:33 AM
[Android App] Collections Not Created thehawk777 Calibre Companion 12 09-06-2013 12:44 AM
Collections not created on Sony PRS-T1 ronandginette Devices 7 09-28-2012 11:35 AM
Patch: Calibre adds tags to identify ebook formats created by calibre. siebert Calibre 1 07-18-2011 02:07 PM
Delete collections created with calibre VICTORSJG Calibre 7 03-18-2010 07:22 AM


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


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