05-18-2022, 07:50 AM | #1 |
Diligent dilettante
Posts: 3,440
Karma: 49052774
Join Date: Sep 2019
Location: in my mind
Device: Kobo Sage; Kobo Libra H2O
|
Calibre metadata - authors with 0 books
I have deleted and recreated my metadata.calibre file several times recently, but still have dozens of authors showing in KOReader with"0" listed next to their names for the count of books. How do I delete these null authors so that they don't show up and add to the number of pages I have to click through?
|
05-18-2022, 05:46 PM | #2 |
BLAM!
Posts: 13,492
Karma: 26047188
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
Hard to say without more details about the workflow and what you did, exactly.
(Wild guess: do the metadata.calibre cleanup from within a Nickel USBMS session, if you're still using the Kobo calibre driver). |
05-18-2022, 09:40 PM | #3 |
Diligent dilettante
Posts: 3,440
Karma: 49052774
Join Date: Sep 2019
Location: in my mind
Device: Kobo Sage; Kobo Libra H2O
|
Here's what I've tried, from stock and while running KOReader: Connect the device, delete the calibre.metadata file, open Calibre, run "update cached metadata on device", eject device. The impact on the 82 zero-book authors, zero.
EDIT: I just exited KOReader and confirmed that none of those 82 authors show up in the stock reader's list of authors on the device Last edited by Uncle Robin; 05-18-2022 at 09:58 PM. |
05-20-2022, 11:25 AM | #4 |
Diligent dilettante
Posts: 3,440
Karma: 49052774
Join Date: Sep 2019
Location: in my mind
Device: Kobo Sage; Kobo Libra H2O
|
Knowing that there are several "pages" of zero-book authors persisting in KOReader made me wonder: If multiple deletion/recreation of the calibre.metadata flie makes no difference to KOReader, would uninstalling KOReader itself and reinstalling it from scratch get rid of them? I have my default settings and gesture preferences saved elsewhere as backup.
|
05-20-2022, 01:45 PM | #5 |
BLAM!
Posts: 13,492
Karma: 26047188
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
|
05-20-2022, 01:47 PM | #6 | |
BLAM!
Posts: 13,492
Karma: 26047188
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
Quote:
|
|
05-20-2022, 01:48 PM | #7 | ||
Diligent dilettante
Posts: 3,440
Karma: 49052774
Join Date: Sep 2019
Location: in my mind
Device: Kobo Sage; Kobo Libra H2O
|
Quote:
Quote:
I'm not sure how to "run a Library scan via NM" though - my NickelMenu has only KOReader in it. |
||
05-20-2022, 02:01 PM | #8 |
cosiñeiro
Posts: 1,316
Karma: 2200073
Join Date: Apr 2014
Device: BQ Cervantes 4
|
Go to the plugin settings and disable the cache. Redo de search. The search will be performed on your pristine json file.
If that solves your issue it means calibre won't update the json mtime on rebuild (or fat32 oddities). Cache speeds searchs quite a bit with many thousands of books but shouldn't be noticeable on the hundreds. |
05-20-2022, 02:23 PM | #9 | |
Diligent dilettante
Posts: 3,440
Karma: 49052774
Join Date: Sep 2019
Location: in my mind
Device: Kobo Sage; Kobo Libra H2O
|
Quote:
This is what I just tried: 1. Settings>Calibre UNCHECK "store metadata in cache" 2. Exit KOReader 3. Connect to my PC via USB, delete calibre.metadata. 4. Open Calibre, after it finished updating, select "update chached metadata on device." 5. Eject device. Open KOReader 6. Manage libraries>"rescan disk for calibre libraries" - found 1 calibre library with 852 books (the correct number of books actually on the device) 7. Check list of authors - all "zero book" authors still there. One thing I'm curious about - you mention a "pristine json file". When I do a search of the device for *.json, there are 4 results listed, as shown in the screenshot. None appear to have anything to do with Calibre? Last edited by Uncle Robin; 05-20-2022 at 02:26 PM. |
|
05-20-2022, 02:38 PM | #10 |
cosiñeiro
Posts: 1,316
Karma: 2200073
Join Date: Apr 2014
Device: BQ Cervantes 4
|
/mnt/onboard/calibre.metadata (or metadata.calibre, I don't remember) is the json file where calibre dumps the list of books on your device and their metadata. (the one detected by KO)
Please check it is there and give us its size. |
05-20-2022, 02:49 PM | #11 |
Diligent dilettante
Posts: 3,440
Karma: 49052774
Join Date: Sep 2019
Location: in my mind
Device: Kobo Sage; Kobo Libra H2O
|
It is there. It is the file I have been repeatedly deleting and recreating, as detailed above. The current version is 30 minutes old and 5.88MB (6029kb)
|
05-20-2022, 03:00 PM | #12 |
cosiñeiro
Posts: 1,316
Karma: 2200073
Join Date: Apr 2014
Device: BQ Cervantes 4
|
I'm out of ideas and I doubt it is related to the plugin we're discussing. Could you please paste a screenshot of the UI where you see all those authors with zero books?
IIRC books are counted by tags or series, but not by authors. You can search books by name, authors or paths but that gives you still a list of books. FWIW: the code that parses calibre json files is in https://github.com/koreader/koreader...n/metadata.lua but I think it has nothing to do with your issue. |
05-20-2022, 03:07 PM | #13 |
Diligent dilettante
Posts: 3,440
Karma: 49052774
Join Date: Sep 2019
Location: in my mind
Device: Kobo Sage; Kobo Libra H2O
|
I've attached 2 screenshots, I hope they help.
|
05-20-2022, 03:38 PM | #14 |
cosiñeiro
Posts: 1,316
Karma: 2200073
Join Date: Apr 2014
Device: BQ Cervantes 4
|
|
05-20-2022, 03:57 PM | #15 |
Diligent dilettante
Posts: 3,440
Karma: 49052774
Join Date: Sep 2019
Location: in my mind
Device: Kobo Sage; Kobo Libra H2O
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Calibre fills automatically title and author metadata in books without any metadata? | thosedays | Library Management | 5 | 10-28-2016 03:33 PM |
Authors smart list for books with multiple authors -bug? | SergeyGomanyuk | Marvin | 1 | 03-29-2014 04:14 AM |
Adding books by titles rather than authors on calibre? | truewt | Calibre | 6 | 07-02-2011 05:14 PM |
importing books into calibre and metadata - I think! | Yirabeth | Library Management | 9 | 01-26-2011 04:30 PM |
PRS-505 Getting Authors to sort by last name using Calibre's metadata plugboard. | ligelowbee | Sony Reader | 5 | 10-14-2010 12:06 PM |