06-08-2011, 08:31 AM | #1 |
Junior Member
Posts: 4
Karma: 888
Join Date: Jun 2011
Device: jmricker
|
Question about populating custom field
I'm working on a metadata source plugin that fetches Dewey Decimal and Library of Congress data. That part of it is working fine -- when it finds a piece of information, it stores it as an identifier. What I'm trying to do next is calculate a genre to plug into a custom column.
Ive got something like this so far: Code:
mi = Metadata(title, authors) mi.identifiers = identifiers mi.set('#genre','im a test') self.clean_downloaded_metadata(mi) result_queue.put(mi) Thanks! |
06-08-2011, 08:37 AM | #2 |
Calibre Plugins Developer
Posts: 4,681
Karma: 2162246
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
@jmricker - basically you can't.
See this thread in the development forums for the discussion about it. All you can do right now is put it into one of the existing fields that Calibre does support, like tags or comments. |
Advert | |
|
06-08-2011, 09:09 AM | #3 |
Junior Member
Posts: 4
Karma: 888
Join Date: Jun 2011
Device: jmricker
|
Phew. So its not just me I've looked through the api swearing I'm doing it right. Thanks for the pointer.
Now since identifier is populated with my two values, I guess I can build a custom template for a column and display the genre that way. (I think, haven't tried this yet). |
08-09-2014, 03:10 PM | #4 | |
Addict
Posts: 393
Karma: 6700000
Join Date: Jan 2012
Location: Gimel
Device: tablets
|
Quote:
Asking, because I'd love to have both Dewey Decimal and Library of Congress Catalog numbers in my Calibre Library. What I'd really love, is a plugin that automatically adds complete CIP data for every book. |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Add Book Regex to Custom field | adept22 | Library Management | 3 | 10-07-2014 08:33 PM |
Search Replcae error on custom field | adept22 | Library Management | 4 | 03-14-2011 10:47 AM |
Custom Metadata Field | gpp | Sigil | 6 | 02-22-2011 09:39 AM |
Can't clear "custom" date field? | joegearhart | Calibre | 5 | 12-20-2010 04:32 AM |
Bulk Meta Data Edit Resetting Custom Field | toomuchreading | Calibre | 8 | 10-22-2010 11:19 PM |