08-08-2012, 02:37 PM | #1 |
Guru
Posts: 776
Karma: 2751519
Join Date: Jul 2010
Location: UK
Device: PW2, Nexus7
|
Add extra <dc:> metadata field
Can I write a plugin to add extra <dc:> fields to a book's metadata.
For example: <dc:Contributor opf:role="rps">[some value]</dc:contributor> I've had a look at set_metadata in calibre\ebooks\metadata\meta.py but I can't see if this let's me do it. |
08-08-2012, 02:52 PM | #2 |
creator of calibre
Posts: 43,844
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
You can write a replacement for the builtin epub metadata reader plugin that reads that field, but you have no way of ensuring that the field gets written to the database. calibre's metadata reading code does a lot of post processing on the input it gets from the metadata plugins, so it's unlikely that your custom metadata will survive.
Short answer: no. |
Advert | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Add Book Regex to Custom field | adept22 | Library Management | 3 | 10-07-2014 07:33 PM |
Extra metadata import from ODT | olig | Development | 50 | 08-02-2012 03:14 AM |
set metadata field | fr3d | Library Management | 6 | 06-14-2012 11:25 AM |
calibredb add -- how to add additional metadata? | TuxGirl | Calibre | 16 | 12-29-2011 01:01 AM |
add new tag field | Mister_R | Library Management | 2 | 08-02-2011 12:13 PM |