Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Library Management

Notices

Reply
 
Thread Tools Search this Thread
Old 06-29-2023, 07:51 AM   #1
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 10,935
Karma: 74999999
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Can unused items get automatically removed from user categories?

I have a user category, @On Kobo. I have an item in that category, '[Send to Device]' (from an enumerated #kobostatus) column. A lot of times, it's unused - I use it to keep track of books to re-upload to device.

Recently. I've found [Send to Device] go missing from my user category several times. (Not hidden; I have to open the editor and re-add it.) This does not happen with any other items in my user category, which makes me think it may be related to [Send to Device] not always being in-use and perhaps somehow getting removed due to being empty.

Is this a feature that I somehow never noticed before, a bug, or just some weird gremlin?

Last edited by ownedbycats; 06-29-2023 at 07:58 AM.
ownedbycats is online now   Reply With Quote
Old 06-29-2023, 09:38 AM   #2
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,421
Karma: 8012664
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by ownedbycats View Post
I have a user category, @On Kobo. I have an item in that category, '[Send to Device]' (from an enumerated #kobostatus) column. A lot of times, it's unused - I use it to keep track of books to re-upload to device.

Recently. I've found [Send to Device] go missing from my user category several times. (Not hidden; I have to open the editor and re-add it.) This does not happen with any other items in my user category, which makes me think it may be related to [Send to Device] not always being in-use and perhaps somehow getting removed due to being empty.

Is this a feature that I somehow never noticed before, a bug, or just some weird gremlin?
If '[Send to Device]' is a category item in a user category then it will be removed if it exists in no book. Why? Because an item must actually exist in some book for it to be in calibre's database. Note that information about the items, e.g., their links, will also disappear.

When it gets removed is a harder question. IIRC using Manage Categories will remove any leftover non-existent items. Probably manipulating the parent user category (right-clicks etc) will clean the items.

And to head off the probably enhancement request: no, I don't want to either leave non-existent items in the category list or add some way to lock non-existant items in a user category. The first would be unreliable and would lead to a very large category list, costing performance when displaying them. The second is more work than I want to do.

You can solve this problem by having a special book that contains items that you want never to disappear.
chaley is offline   Reply With Quote
Advert
Old 06-29-2023, 02:57 PM   #3
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 10,935
Karma: 74999999
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Would running an action chain that changes the value of #kobostatus on book(s) be enough to clean the item?

The other thing I think of is editing the category itself - I added and removed several items from another column that has items in @On Kobo, which meant I had to use 'manage user categories' to adjust it. It's possible I never did this before while [Send to Device] was empty.

Is this a recent change? I've never really noticed it happen before, except in the last few weeks. There was the change to remove duplicate category items, but I'm not sure that would affect this.

Last edited by ownedbycats; 06-29-2023 at 03:18 PM.
ownedbycats is online now   Reply With Quote
Old 06-29-2023, 04:44 PM   #4
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,421
Karma: 8012664
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by ownedbycats View Post
Would running an action chain that changes the value of #kobostatus on book(s) be enough to clean the item?
Depends on how the change is done. If it uses only db.cache then I don't think it will. Touching the list of user categories can do the check.
Quote:
The other thing I think of is editing the category itself - I added and removed several items from another column that has items in @On Kobo, which meant I had to use 'manage user categories' to adjust it. It's possible I never did this before while [Send to Device] was empty.
Manage User Categories removes all items that no longer exist.
Quote:
Is this a recent change? I've never really noticed it happen before, except in the last few weeks. There was the change to remove duplicate category items, but I'm not sure that would affect this.
Yes and no. Non-existent items were removed in some cases since forever. Changes in August 2022 generalized this behavior.

IMO removing user category items that no longer exist in the database is the correct behavior.
chaley is offline   Reply With Quote
Old 06-29-2023, 04:58 PM   #5
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 10,935
Karma: 74999999
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
A single-field edit based on a stored GPM template. I'm not sure if that would use db.cache or not.

Last edited by ownedbycats; 06-30-2023 at 01:34 AM.
ownedbycats is online now   Reply With Quote
Advert
Old 06-29-2023, 06:53 PM   #6
capink
Wizard
capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.
 
Posts: 1,195
Karma: 1995558
Join Date: Aug 2015
Device: Kindle
Quote:
Originally Posted by chaley View Post
Depends on how the change is done. If it uses only db.cache then I don't think it will.
Quote:
Originally Posted by ownedbycats View Post
A single-field edit based on a stored GPM template. I'm not sure if that would use db.cache or not.
It uses db.new_api.set_field() to change the values.

Quote:
Originally Posted by chaley View Post
IMO removing user category items that no longer exist in the database is the correct behavior.
I don't edit my user categories directly in calibre. Instead, I edit them in a csv file, and import them into calibre using the Category Tags plugin. This might be a solution for anyone who does not want to lose their user categories.
capink is offline   Reply With Quote
Old 06-29-2023, 07:04 PM   #7
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 21,708
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by chaley View Post
IMO removing user category items that no longer exist in the database is the correct behavior.
If you didn't think that, then you'd have me knocking on your door asking why can't all categories have an option that would make them persistent - what I'd call the controlled vocabulary option

BR
BetterRed is offline   Reply With Quote
Old 06-29-2023, 07:45 PM   #8
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 10,935
Karma: 74999999
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
I mostly found it odd as #kobostatus is an enumerated column - It wouldn't have been so confusing for a regular text column where the entry disappears completely if you remove it.

It's not a big issue, I can just make sure not to edit when the entry is empty - by which I mean queue up a book to be sent to device

Last edited by ownedbycats; 06-30-2023 at 01:32 AM.
ownedbycats is online now   Reply With Quote
Old 06-30-2023, 01:40 AM   #9
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 10,935
Karma: 74999999
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
also, the single-field edit didn't remove the item - here it's flagged as 'not in library.' Oddly, pressing 'ok' to save doesn't remove it from list as I would have expected from post #2 and previously seen behaviour)

Click image for larger version

Name:	2023-06-30 02_38_50-User categories editor.png
Views:	53
Size:	38.1 KB
ID:	202364

Since the category editor was mentioned, I still think the most likely situation is it happened when I was editing items in #kobocoll (merging and renaming) which would've updated the user-category. Though [Send to Device] is in #kobostatus, so I'm not sure.

Last edited by ownedbycats; 06-30-2023 at 03:12 AM.
ownedbycats is online now   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Could KoboCloud be modified so that it does not re-download removed items? ajkessel Kobo Developer's Corner 0 07-28-2022 03:29 PM
Sorting of items in User Categories ownedbycats Library Management 4 02-24-2022 02:31 AM
User categories: Automatically include new entries? ownedbycats Library Management 1 01-18-2022 07:44 AM
Convert subdirs to categories while importing automatically geruser Calibre 2 09-15-2013 01:56 PM
0.7.47 - User Categories & Sub-Categories nynaevelan Library Management 0 02-28-2011 06:11 PM


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


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