Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Related Tools

Notices

Reply
 
Thread Tools Search this Thread
Old 06-20-2022, 04:26 AM   #1
felixai
Junior Member
felixai began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Jun 2022
Device: none
Fix epub issues with Python

Hello,

when I use the Calibre UI, I can edit a book and actually run a check that tells me what are the issues with the book. I can then also run a utility that fixes the issues for me.

Is there a way to accomplish that programmatically with python? I would like to fix the books with e command line tool as opposed to using a UI!

Thanks for your help!
felixai is offline   Reply With Quote
Old 06-20-2022, 04:47 AM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,337
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
There is no documented/stable API. You can probably hack it together if you read the source code and figure out the entry points for checking the book and call it from your python script which you can run with

calibre-debug script.py file.epub
kovidgoyal is offline   Reply With Quote
Advert
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
will custom firmware fix spacing issues? StephenQueen Kobo Reader 4 01-21-2022 07:56 AM
Fixing python zipimport issues on Windows kovidgoyal Development 12 10-03-2020 10:24 PM
Kindle DX issues - Any way to fix? mdovell Amazon Kindle 4 05-02-2016 09:23 AM
KTerm & Python Issues aBP Kindle Developer's Corner 4 02-10-2016 05:23 PM
How to use Acrobat to fix PDF issues mapletony Sony Reader 0 01-22-2008 07:59 PM


All times are GMT -4. The time now is 04:07 PM.


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