|
|
#661 | |
|
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 81,990
Karma: 150266009
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
Will you be editing the code for every single release of calibre going forward? Is this going to be as (un)supported as the version that supposedly removed AI? |
|
|
|
|
|
|
#662 | |
|
Chalut o/
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 637
Karma: 718860
Join Date: Dec 2017
Device: Kobo
|
Quote:
Yes, scanning the entire libray will take a bit of time if you accidentaly click on the bookshelf button, but it is a process perform in backroung that like when you add new book, adds very little overhead. That infortunate, but is a complex mixte of compromise to ensure that the build-in Calibre Pages count contain valid value in the case the user want to use it later A choice that was made easier by the fact that Calibre Pages count is pretty fast (3 book by second, 1000 by hour), especialy compared to Pages Count Plugin, so once your library is completely done, your completely fine. Just be a little patient. The only point that matter is IF you encounter freezing and stuttering of main interface when the library scan is perform, please thanks to report it if so. Last edited by un_pogaz; 02-03-2026 at 07:02 AM. |
|
|
|
|
| Advert | |
|
|
|
|
#663 |
|
Chalut o/
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 637
Karma: 718860
Join Date: Dec 2017
Device: Kobo
|
Also, is not a "dynamicaly generated column": the Calibre Page is well stored into the library database, making that once a book is scanned, is not scanned again. But inded, this value is not stored into metadata.opf
|
|
|
|
|
|
#664 |
|
Chalut o/
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 637
Karma: 718860
Join Date: Dec 2017
Device: Kobo
|
@Kovid, I honestly hadn't noticed that the Calibre Page was not stored in the metadata.opf backup in the library. It is logical given the particular nature of this field, however, I think it would still be relevant to at least export this value in OPF file when using the actions "Save as...", even if it means ignoring this when importing a book in the library.
I can try to work on that, but make sens to you? Last edited by un_pogaz; 02-03-2026 at 07:48 AM. |
|
|
|
|
|
#665 |
|
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,982
Karma: 29579516
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Why? What purpose would it serve there? What's the use case for it?
|
|
|
|
| Advert | |
|
|
|
|
#666 |
|
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 81,990
Karma: 150266009
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
IMHO, the reason to store the calibre generated page number is if anyone has to restore the database, calibre won't have to recompute all the page numbers again. Anyone using a mechanical hard drive could find this process a bit slow if they have enough books.
|
|
|
|
|
|
#667 |
|
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 81,990
Karma: 150266009
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
If the database is restored and then the bookshelf button is not clicked, will the page number compute?
|
|
|
|
|
|
#668 | |
|
Chalut o/
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 637
Karma: 718860
Join Date: Dec 2017
Device: Kobo
|
Quote:
But it right I don't have use case for that, so certainly don't bother that much. Just a passing idea. |
|
|
|
|
|
|
#669 |
|
Chalut o/
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 637
Karma: 718860
Join Date: Dec 2017
Device: Kobo
|
With efficiency of the scan is, the speed gain would not be relevant when restoring a library. Especially since the value stored in the database is more complexe that just a numeric value, so it's much easier and safe to rescan the book from scratch.
|
|
|
|
|
|
#670 |
|
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 81,990
Karma: 150266009
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
What's stored in the database besides the page number?
|
|
|
|
|
|
#671 |
|
Chalut o/
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 637
Karma: 718860
Join Date: Dec 2017
Device: Kobo
|
The only value that deserve to be exported is "pages", so the one that everyone see. Expoted the others that are internal values make no sense, and in consequently, it is unreliable to reimport the "pages" value. |
|
|
|
|
|
#672 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,480
Karma: 10684861
Join Date: May 2006
Device: PocketBook 360, before it was Sony Reader, cassiopeia A-20
|
Install a "DB browser for SQLite", or some equivalent, make a copy of your Calibre database file and have a look. I was surprised how complex the database is and how many tables it has. It has 38 tables, 27 indices, 11 views, 40 triggers.
|
|
|
|
|
|
#673 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,480
Karma: 10684861
Join Date: May 2006
Device: PocketBook 360, before it was Sony Reader, cassiopeia A-20
|
I respectfully disagree. metadata.opf is there in case of disaster, when a damaged/incomplete Calibre collection needs to be salvaged, or when the main database file is corrupted. In such case a recompute of page size of the book is a negligible expense in comparison with the rest of the work.
|
|
|
|
|
|
#674 | |
|
Chalut o/
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 637
Karma: 718860
Join Date: Dec 2017
Device: Kobo
|
Quote:
I talk of "The only value that deserve to be exported is "pages"..." in the case of separated saved OPF when using the action "Save as...", but the metadata.opf backup is a whole other story and I agree with you. Last edited by un_pogaz; 02-03-2026 at 11:21 AM. |
|
|
|
|
|
|
#675 | |
|
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,476
Karma: 62503914
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
and metadata.opf (the backup file) DOES get an entry. snipped from one of my book entries: Code:
<meta name="calibre:user_metadata:#pages" content="{"table": "custom_column_4", "column": "value", "datatype": "int", "is_multiple": null, "kind": "field", "name": "PagesP", "search_terms": ["#pages"], "label": "pages", "colnum": 4, "display": {"number_format": "{:,}", "description": "", "web_search_template": ""}, "is_custom": true, "is_category": false, "link_column": "value", "category_sort": "value", "is_csp": false, "is_editable": true, "rec_index": 32, "#value#": 351, "#extra#": null, "is_multiple2": {}}"/>
|
|
|
|
|
![]() |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| calibre 5: Beta testers needed | kovidgoyal | Calibre | 497 | 09-29-2020 01:58 AM |
| Beta testers needed | kovidgoyal | Calibre | 75 | 08-18-2019 08:00 PM |
| Beta testers for calibre 3.0 needed | kovidgoyal | Calibre | 598 | 07-09-2017 11:26 PM |
| Beta testers needed | kovidgoyal | Calibre | 54 | 05-20-2016 01:34 PM |
| Beta testers for calibre 2.0 needed | kovidgoyal | Calibre | 142 | 05-08-2015 05:44 AM |