07-02-2011, 08:11 PM | #1 |
Junior Member
Posts: 3
Karma: 10
Join Date: Jul 2011
Device: Sony PRS-505
|
When some <MetadataWriterPlugin> is used
Can somebody explain me when <MetadataWriterPlugin> is used, in which context or conversion process phase?
Is it possible for a user to call it from UI in order to apply current book metadata to the selected book format? If I provide <MetadataReaderPlugin> for some book format should I develop the <MetadataWriterPlugin> as well? (I looked up in the code, it looks like not all build-in book formats have both type of plugins) |
07-02-2011, 08:43 PM | #2 |
creator of calibre
Posts: 43,857
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
writer plugins are used when ever a book is exported from the calibre library via save to disk/send to device/the content server.
|
Advert | |
|
07-03-2011, 11:50 AM | #3 |
Sigil & calibre developer
Posts: 2,488
Karma: 1063785
Join Date: Jan 2009
Location: Florida, USA
Device: Nook STR
|
The reader and writes are also used by some conversion plugins. Instead of duplicating code I often put the metadata stuff into the reader/writer class and use it in the conversion plugin.
You do not need to provide both. It's nice to have both but not aways feasible. As you noted not all formats have both. |