Register Guidelines E-Books Today's Posts Search

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

Notices

Reply
 
Thread Tools Search this Thread
Old 03-24-2021, 10:33 AM   #1
xxyzz
Evangelist
xxyzz ought to be getting tired of karma fortunes by now.xxyzz ought to be getting tired of karma fortunes by now.xxyzz ought to be getting tired of karma fortunes by now.xxyzz ought to be getting tired of karma fortunes by now.xxyzz ought to be getting tired of karma fortunes by now.xxyzz ought to be getting tired of karma fortunes by now.xxyzz ought to be getting tired of karma fortunes by now.xxyzz ought to be getting tired of karma fortunes by now.xxyzz ought to be getting tired of karma fortunes by now.xxyzz ought to be getting tired of karma fortunes by now.xxyzz ought to be getting tired of karma fortunes by now.
 
Posts: 413
Karma: 2666666
Join Date: Nov 2020
Device: none
Some quesitons about calibre code

I use some part of the calibre code like these:

- update MOBI book's EXTH header to change ASIN: https://github.com/xxyzz/WordDumb/bl...etadata.py#L54

- get HTML bytes of MOBI book: https://github.com/xxyzz/WordDumb/bl...rse_job.py#L58

- send book to device: https://github.com/xxyzz/WordDumb/bl...nd_file.py#L19

- get certain MOBI header: https://github.com/xxyzz/WordDumb/bl...tadata.py#L118

Is there any equivalent handy APIs already exist in calibre? If not, I'd like to send a few pull requests to add them.

Last edited by xxyzz; 03-24-2021 at 10:46 AM.
xxyzz is offline   Reply With Quote
Old 03-24-2021, 11:12 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: 43,866
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
No I dont think there are. I dont generally like to keep code around that I dont use, as it tends to bitrot. If you do want to add it to calibre then make sure you add tests for it as well.
kovidgoyal is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Calibre downloading error code 2203 dutchpete Calibre 3 08-29-2012 07:24 AM
Kindle 2 vs Sony Touch PRS-600... help/opinions/quesitons ab10 Which one should I buy? 6 03-25-2010 05:12 AM
Regarding Calibre source code compiling shivas Introduce Yourself 4 12-23-2009 09:52 AM
Help with Error code from Calibre that I can't decifer hefrench Calibre 1 10-09-2009 12:01 PM


All times are GMT -4. The time now is 09:57 AM.


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