View Single Post
Old 06-12-2012, 07:54 AM   #1
Agama
Guru
Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.
 
Agama's Avatar
 
Posts: 776
Karma: 2751519
Join Date: Jul 2010
Location: UK
Device: PW2, Nexus7
Writing a first plugin

I want to write my own plugin to automate some ePub post-conversion processing. I have read the calibre manual on writing plugins but there is still quite a learning curve to go through, so I would like to "cheat".

My plugin will work along the following lines:

1) Select an ePub book in the Library (GUI).
2) Explode the selected ePub.
3) Do some stuff to the xhtml files.
4) Rebuild the ePub.

Can any recommend a simple plugin that I can use as a basis for this type of processing? I can then reverse engineer it to, hopefully, get a better understanding of how plugins work.

I did start looking at kiwidude's Modify ePub plugin, (since it's one I already use), but it's quite a substantial plugin and does not appear to be simple!
Agama is offline   Reply With Quote