![]() |
#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! |
![]() |
![]() |
![]() |
#2 |
Calibre Plugins Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,718
Karma: 2197770
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 | |
|
![]() |
#3 |
Junior Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4
Karma: 888
Join Date: Jun 2011
Device: jmricker
|
Phew. So its not just me
![]() 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). |
![]() |
![]() |
![]() |
#4 | |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 394
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. |
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Add Book Regex to Custom field | adept22 | Library Management | 3 | 10-07-2014 07:33 PM |
Search Replcae error on custom field | adept22 | Library Management | 4 | 03-14-2011 09:47 AM |
Custom Metadata Field | gpp | Sigil | 6 | 02-22-2011 08:39 AM |
Can't clear "custom" date field? | joegearhart | Calibre | 5 | 12-20-2010 03:32 AM |
Bulk Meta Data Edit Resetting Custom Field | toomuchreading | Calibre | 8 | 10-22-2010 10:19 PM |