|
|
#1 |
|
Junior Member
![]() 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 |
|
|
|
|
|
#2 |
|
Junior Member
![]() 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 |
|
|
|
|
|
#3 |
|
Junior Member
![]() 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.
|
|
|
|
|
|
#4 |
|
Junior Member
![]() 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
|
|
|
|
|
|
#5 |
|
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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?
|
|
|
|
|
|
#6 |
|
Junior Member
![]() 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.
|
|
|
|
|
|
#7 | |
|
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 201
Karma: 727278
Join Date: Dec 2022
Location: Not in an English speaking country
Device: (Too many) Kobo(s)
|
Quote:
I currently use 6 different custom columns to create collections:
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 )
|
|
|
|
|
|
|
#8 |
|
Junior Member
![]() 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.
|
|
|
|
|
|
#9 |
|
Junior Member
![]() 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.
|
|
|
|
|
|
#10 |
|
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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!
|
|
|
|
|
|
#11 | |
|
Diligent dilettante
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,747
Karma: 52758936
Join Date: Sep 2019
Location: in my mind
Device: Kobo Sage; Kobo Libra Colour
|
Quote:
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? |
|
|
|
|
|
|
#12 | |
|
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 201
Karma: 727278
Join Date: Dec 2022
Location: Not in an English speaking country
Device: (Too many) Kobo(s)
|
Quote:
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 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
|
|
|
|
|
|
|
#13 |
|
Diligent dilettante
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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
|
|
|
|
|
|
#14 |
|
Member
![]() 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. |
|
|
|
![]() |
| Tags |
| first post, patches |
|
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 |