11-23-2021, 03:21 PM | #2341 | |
Wizard
Posts: 2,275
Karma: 7406665
Join Date: Mar 2009
Location: Circling Earth @ Mach .83
Device: Elipsa 2E, Sage, Libra Colour, Libra 2, Clara 2E, Oasis3, Voyage
|
Quote:
Is it possible to maintain one column for existing and future dates using your code? It would appear that I must either 1) create a second duplicate column created with your code, or 2) manually re-enter the dates of hundreds of previous finished books to one new column using your code. P.S. I did indeed read your referenced response linked above prior to my original post. Last edited by Skydog; 11-23-2021 at 03:25 PM. Reason: P.S. |
|
11-23-2021, 04:25 PM | #2342 |
Zealot
Posts: 147
Karma: 278068
Join Date: Dec 2014
Location: Poland
Device: Kindle PW3, Kobo Libra 2
|
Not sure if this is too difficult to check, but could you show how exported annotations/bookmarks look like? That's one of the factors I'm thinking about before I decide whether to pull a trigger on a Libra 2, i.e. if it's easy to read extracted information.
|
Advert | |
|
11-23-2021, 08:35 PM | #2343 | |
Grand Sorcerer
Posts: 24,906
Karma: 47303822
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Quote:
If the current "Finished" column also has timestamps that came from other reading methods, then you need to decide if you want to keep that separate from the Kobo timestamp. If you don't, then I would copy the values in "Finished" column to the Kobo timestamp column. Then I would replace the "Finished" column with the template column. If you do want to keep these separate, then we could come up with a template that showed one of the timestamps. Exactly what that would be depends on what the expected combinations of values are and which takes preference. For example: Code:
program: kobo_date = cmp($$#kobo_percent_read, 100, '', $$#kobo_last_read, $$#kobo_last_read); cmp(days_between($$#finished, kobo_date), 0, format_date(kobo_date,'dd MMM yyyy'), format_date($$#finished,'dd MMM yyyy'), format_date($$#finished,'dd MMM yyyy')); |
|
11-23-2021, 09:39 PM | #2344 | |
Wizard
Posts: 2,275
Karma: 7406665
Join Date: Mar 2009
Location: Circling Earth @ Mach .83
Device: Elipsa 2E, Sage, Libra Colour, Libra 2, Clara 2E, Oasis3, Voyage
|
Quote:
I tried replacing the code with what you provided in your first reply and it deleted all the previously existing dates (a result of a convoluted method I was using). Then I tried the code above and it placed an entry in every book in my library with BAD DATE. I stumbled upon the template editor and a few things were highlighted in blue, if that means anything. (see screenshot). To keep it simple, all I am trying to create is one column, with a single entry of dd MMM yyyy when a book is finished and I connect a device to Calibre. The first three fields are: Lookup name: finished Column heading: Finished Column type: Column built from other columns Thank you for your assistance. So close, but not quite there. Last edited by Skydog; 11-23-2021 at 11:49 PM. Reason: Corrections and attachment |
|
11-24-2021, 12:24 AM | #2345 | |
Grand Sorcerer
Posts: 24,906
Karma: 47303822
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Quote:
The error you have above is because the template is referring to the column it is in. The lookup name is "finished" and you use that in the template. You need to refer to a different column. Which would be the column you deleted. |
|
Advert | |
|
11-24-2021, 03:07 AM | #2346 | |
Wizard
Posts: 2,275
Karma: 7406665
Join Date: Mar 2009
Location: Circling Earth @ Mach .83
Device: Elipsa 2E, Sage, Libra Colour, Libra 2, Clara 2E, Oasis3, Voyage
|
Quote:
Lookup name: kobolastread Column heading: Last Read Column type: Date The second column must be created as both the current and previously deleted "Finished" column types are "Column built from other columns" and cannot be edited. What is required below to work with the first template? Lookup name: ????? Column heading: Finished Column type: Date ?????? Boy, oh boy, I should have left well enough alone. |
|
11-24-2021, 07:16 AM | #2347 | ||
Grand Sorcerer
Posts: 24,906
Karma: 47303822
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Quote:
Quote:
|
||
11-24-2021, 01:56 PM | #2348 | ||
Wizard
Posts: 2,275
Karma: 7406665
Join Date: Mar 2009
Location: Circling Earth @ Mach .83
Device: Elipsa 2E, Sage, Libra Colour, Libra 2, Clara 2E, Oasis3, Voyage
|
Quote:
Lookup name: kobolastread Column heading: Last Read Column type: Date Lookup name: finished Column heading: Finished Column type: Column built from other columns Template: Quote:
|
||
11-24-2021, 01:59 PM | #2349 |
Junior Member
Posts: 2
Karma: 10
Join Date: Nov 2021
Device: KOBO AURA H20 Edition 2
|
Hi I'me French user and I have a bug with my Kobo.
I hope you could help me because I have no clue or computer acknowledge Below the message fromcalibre calibre, version 5.32.0 ERREUR : Erreur: Erreur pendant la communication avec le périphérique CorruptError: database disk image is malformed Traceback (most recent call last): File "calibre\gui2\device.py", line 87, in run File "calibre\gui2\device.py", line 543, in _sync_booklists File "calibre\devices\kobo\driver.py", line 976, in sync_booklists File "calibre\devices\kobo\driver.py", line 2573, in update_device_database_collections File "calibre\devices\kobo\driver.py", line 2869, in remove_book_from_device_bookshelves apsw.CorruptError: CorruptError: database disk image is malformed Thanks a lot for your help |
11-24-2021, 02:48 PM | #2350 | ||
Wizard
Posts: 2,275
Karma: 7406665
Join Date: Mar 2009
Location: Circling Earth @ Mach .83
Device: Elipsa 2E, Sage, Libra Colour, Libra 2, Clara 2E, Oasis3, Voyage
|
Quote:
Quote:
calibre corrupt error corrupt error database disk image is malformed |
||
11-25-2021, 01:52 PM | #2351 |
Junior Member
Posts: 2
Karma: 10
Join Date: Nov 2021
Device: KOBO AURA H20 Edition 2
|
Many thanks for your help it's working
|
11-25-2021, 02:07 PM | #2352 |
Wizard
Posts: 2,275
Karma: 7406665
Join Date: Mar 2009
Location: Circling Earth @ Mach .83
Device: Elipsa 2E, Sage, Libra Colour, Libra 2, Clara 2E, Oasis3, Voyage
|
|
11-25-2021, 09:00 PM | #2353 | |
Wizard
Posts: 2,275
Karma: 7406665
Join Date: Mar 2009
Location: Circling Earth @ Mach .83
Device: Elipsa 2E, Sage, Libra Colour, Libra 2, Clara 2E, Oasis3, Voyage
|
Any ideas, anyone?
Quote:
|
|
11-25-2021, 10:27 PM | #2354 |
Grand Sorcerer
Posts: 24,906
Karma: 47303822
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
|
11-26-2021, 12:55 AM | #2355 |
Wizard
Posts: 2,275
Karma: 7406665
Join Date: Mar 2009
Location: Circling Earth @ Mach .83
Device: Elipsa 2E, Sage, Libra Colour, Libra 2, Clara 2E, Oasis3, Voyage
|
Nothing has changed with the information in my post#2348. I'm sorry, but I do not understand if I should edit the template or the lookup and with what? Would you be so kind to provide the required correction? That would be most helpful for me to understand. I very much appreciate your help, not to mention your patience.
|
Tags |
calibre, kobo, kobo utilities, kobo-utilities, plugins |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[GUI Plugin] Manga plugin | mastertea | Plugins | 6 | 01-06-2022 02:43 AM |
[GUI Plugin] Save Virtual Libraries To Column (GUI) | chaley | Plugins | 14 | 04-04-2021 05:25 AM |
Kobo Utilities Plugin Question | nikev | Kobo Reader | 10 | 09-25-2018 11:55 PM |
[GUI Plugin] Plugin Updater **Deprecated** | kiwidude | Plugins | 159 | 06-19-2011 12:27 PM |