Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Plugins

Notices

Reply
 
Thread Tools Search this Thread
Old 08-17-2026, 12:50 PM   #1
dunhill
Wizard
dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.
 
dunhill's Avatar
 
Posts: 1,165
Karma: 1512904
Join Date: Sep 2017
Location: Buenos Aires, Argentina
Device: moon+ reader, kindle paperwhite
[GUI Plugin] Integrity Analysis

Integrity Analysis is a powerful plugin for Caliber designed to automate database diagnostics and deep file integrity checks, ensuring your library remains healthy, structured, and free of corruption.

Key Features & Technical Overview

Deep Library & Database Scanning:
* Direct interaction with caliber's internal database (`metadata.db`) to query book records, authors, and associated formats.
* Maps relative file paths and inspects storage integrity without disrupting the main application workflow.

Advanced File Integrity Checks:
Physical Existence Verification: Scans the disk to ensure physical files actually exist and handle potential I/O errors gracefully.
EPUB Validation: Automatically checks if EPUB files are valid archives containing essential core components (`mimetype`, `META-INF/container.xml`).
PDF & Generic Format Diagnostics: Inspects headers for massive null-byte padding (`\x00`), which typically indicates disk sector failures, memory corruption, or incomplete transfers.

Smart Caching & Reporting:
Persistent Memory Cache: Automatically stores the results of your latest scan in memory so you can instantly review findings without re-scanning thousands of books.
Detailed Report Viewer: Displays clean, resizable summaries using monospaced format for quick analysis.
Export to TXT: Easily export scan summaries and diagnostic logs directly to a `.txt` file for troubleshooting or record-keeping.

Seamless Interface Integration:
Toolbar button featuring an intuitive dropdown menu for quick access: run analysis, view the last report, export data, or open preferences.

Configuration Options
Scan Depth: Toggle between fast structural checks (metadata-only) or deep physical file validation.
Automated Logging: Set preferences to automatically display error logs or summary reports immediately upon scan completion.
Check Filters: Customize specific integrity checks to suit your library management style.

This is what it looks like if there are no problems:
Code:
==================================================
INTEGRITY ANALYSIS REPORT
==================================================
Total books checked: 23
Issues found: 0
------------------------------------------------------------
No security or integrity issues detected. Your library is healthy.
===========================================
And so if you find them:
Code:
========================================================
INTEGRITY ANALYSIS REPORT
========================================================
Total books checked: 23
Issues found: 2
------------------------------------------------------------
[ID: 12] Don Quixote of La Mancha -> Issue: Missing format file (EPUB/PDF) in book directory.
[ID: 45] One Hundred Years of Solitude -> Issue: Corrupted or unreadable OPF metadata file.

==================================================
Generating a text file that can be exported to identify the problem that needs fixing.
Attached Thumbnails
Click image for larger version

Name:	1.png
Views:	10
Size:	11.9 KB
ID:	225387   Click image for larger version

Name:	2.png
Views:	12
Size:	39.2 KB
ID:	225388   Click image for larger version

Name:	3.png
Views:	12
Size:	57.2 KB
ID:	225389  
Attached Files
File Type: zip Integrity Analysis.zip (213.5 KB, 19 views)

Last edited by dunhill; 08-23-2026 at 11:46 PM.
dunhill is offline   Reply With Quote
Old 08-17-2026, 12:50 PM   #2
dunhill
Wizard
dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.
 
dunhill's Avatar
 
Posts: 1,165
Karma: 1512904
Join Date: Sep 2017
Location: Buenos Aires, Argentina
Device: moon+ reader, kindle paperwhite
Reserved
dunhill is offline   Reply With Quote
Old 08-18-2026, 02:28 AM   #3
sgmoore
Groupie
sgmoore ought to be getting tired of karma fortunes by now.sgmoore ought to be getting tired of karma fortunes by now.sgmoore ought to be getting tired of karma fortunes by now.sgmoore ought to be getting tired of karma fortunes by now.sgmoore ought to be getting tired of karma fortunes by now.sgmoore ought to be getting tired of karma fortunes by now.sgmoore ought to be getting tired of karma fortunes by now.sgmoore ought to be getting tired of karma fortunes by now.sgmoore ought to be getting tired of karma fortunes by now.sgmoore ought to be getting tired of karma fortunes by now.sgmoore ought to be getting tired of karma fortunes by now.
 
Posts: 173
Karma: 718168
Join Date: Mar 2021
Device: Kindle Voyage
?

It's not April 1st, so what gives?
sgmoore is offline   Reply With Quote
Old 08-22-2026, 05:22 PM   #4
dunhill
Wizard
dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.
 
dunhill's Avatar
 
Posts: 1,165
Karma: 1512904
Join Date: Sep 2017
Location: Buenos Aires, Argentina
Device: moon+ reader, kindle paperwhite
Version 1.3.0 Minor bugs fixed. Thanks @Comfy.n for the feedback
dunhill is offline   Reply With Quote
Old 08-23-2026, 12:54 PM   #5
dunhill
Wizard
dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.
 
dunhill's Avatar
 
Posts: 1,165
Karma: 1512904
Join Date: Sep 2017
Location: Buenos Aires, Argentina
Device: moon+ reader, kindle paperwhite
Version 1.4.0 in the configuration options now allows you to check for missing or corrupted metadata.opf files since having these files is a personal decision.
Attached Thumbnails
Click image for larger version

Name:	2.png
Views:	25
Size:	39.6 KB
ID:	225377  
dunhill is offline   Reply With Quote
Old 08-23-2026, 03:53 PM   #6
PeterT
Grand Sorcerer
PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.
 
Posts: 14,080
Karma: 83429614
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
My big issue here is the NAME of the plugin.

Surely what you are doing is verifying the integrity of a book NOT the security.

Might I suggest a far more meaningful name would be "Integrity Analysis"
PeterT is offline   Reply With Quote
Old 08-23-2026, 05:33 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: 22,803
Karma: 34252730
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by dunhill View Post
Version 1.4.0 in the configuration options now allows you to check for missing or corrupted metadata.opf files since having these files is a personal decision.
IMO: that implies calibre has a setting to do away with having metadata.opf files in the book folders… can you tell me where I can find that setting?

I looked in the obvious places, Tweaks, Env Vars, and elsewhere; so, if it exists it's illuding me… perhaps I hallucinated they are mandatory if the Restore Database feature is ever to work.

BR

Last edited by BetterRed; 08-23-2026 at 05:50 PM. Reason: added 2nd para
BetterRed is offline   Reply With Quote
Old 08-23-2026, 06:33 PM   #8
dunhill
Wizard
dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.
 
dunhill's Avatar
 
Posts: 1,165
Karma: 1512904
Join Date: Sep 2017
Location: Buenos Aires, Argentina
Device: moon+ reader, kindle paperwhite
Quote:
Originally Posted by BetterRed View Post
IMO: that implies calibre has a setting to do away with having metadata.opf files in the book folders… can you tell me where I can find that setting?

BR
It doesn't have the option to delete them, but rather the option to create them; here I'll show you where.


When I started developing the plugin, I checked my author/titles folder and found those three files. Then a user asked me what the OPF files were, and I realized that having those files is a personal choice for the user. Therefore, I updated the plugin's configuration window to allow for selection.
Attached Thumbnails
Click image for larger version

Name:	1.png
Views:	28
Size:	184.4 KB
ID:	225381  
dunhill is offline   Reply With Quote
Old 08-23-2026, 06:39 PM   #9
dunhill
Wizard
dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.
 
dunhill's Avatar
 
Posts: 1,165
Karma: 1512904
Join Date: Sep 2017
Location: Buenos Aires, Argentina
Device: moon+ reader, kindle paperwhite
Quote:
Originally Posted by PeterT View Post
My big issue here is the NAME of the plugin.

Surely what you are doing is verifying the integrity of a book NOT the security.

Might I suggest a far more meaningful name would be "Integrity Analysis"
Security refers to ensuring that if you make a backup, your library will be intact. This plugin originated from a user comment in this thread: https://www.mobileread.com/forums/sh...d.php?t=374875

But obviously, I'm open to suggestions.
dunhill is offline   Reply With Quote
Old 08-23-2026, 07:04 PM   #10
PeterT
Grand Sorcerer
PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.
 
Posts: 14,080
Karma: 83429614
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
Those opf files are created by the backup library subcommand found in the drop down menu of the ebook library icon
PeterT is offline   Reply With Quote
Old 08-23-2026, 07:35 PM   #11
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 84,665
Karma: 153788055
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
There is no option not to create the metadata.opf files for each book directory.
JSWolf is offline   Reply With Quote
Old 08-23-2026, 07:41 PM   #12
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 31,938
Karma: 64187770
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by dunhill View Post
It doesn't have the option to delete them, but rather the option to create them; here I'll show you where.


When I started developing the plugin, I checked my author/titles folder and found those three files. Then a user asked me what the OPF files were, and I realized that having those files is a personal choice for the user. Therefore, I updated the plugin's configuration window to allow for selection.
Nope: That controls EXPORTS to devices that do not have their own drivers.
theducks is offline   Reply With Quote
Old 08-23-2026, 11:38 PM   #13
dunhill
Wizard
dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.
 
dunhill's Avatar
 
Posts: 1,165
Karma: 1512904
Join Date: Sep 2017
Location: Buenos Aires, Argentina
Device: moon+ reader, kindle paperwhite
Following the suggestions, I've renamed the plugin to Integrity Analysis and replaced the images and names in the tab. I would appreciate it if a moderator could change the thread title.
dunhill is offline   Reply With Quote
Old 08-24-2026, 02:13 AM   #14
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: 22,803
Karma: 34252730
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by dunhill View Post
Following the suggestions, I've renamed the plugin to Integrity Analysis and replaced the images and names in the tab. I would appreciate it if a moderator could change the thread title.
Done

BR
BetterRed is offline   Reply With Quote
Old 08-24-2026, 02:46 AM   #15
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: 22,803
Karma: 34252730
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by dunhill View Post
It doesn't have the option to delete them, but rather the option to create them; here I'll show you where.


When I started developing the plugin, I checked my author/titles folder and found those three files. Then a user asked me what the OPF files were, and I realized that having those files is a personal choice for the user. Therefore, I updated the plugin's configuration window to allow for selection.
Save to Disk does not determine what is written to the library directory or its author and book subdirectories, including the library/author/book/metadata.opf files, the presence of which is mandatory… i.e. you can't not have them.

BR

Last edited by BetterRed; 08-24-2026 at 04:39 AM.
BetterRed is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[GUI Plugin] Streamer - RSVP Speed Reader plugin for Calibre npapadacis Plugins 6 04-24-2026 03:00 AM
[GUI Plugin] Noosfere_util, a companion plugin to noosfere DB lrpirlet Plugins 2 08-18-2022 03:15 PM
[GUI Plugin] Save Virtual Libraries To Column (GUI) chaley Plugins 14 04-04-2021 05:25 AM
[GUI Plugin] Plugin Updater **Deprecated** kiwidude Plugins 159 06-19-2011 12:27 PM


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


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