View Single Post
Old 06-08-2011, 08:31 AM   #1
jmricker
Junior Member
jmricker has learned how to read e-booksjmricker has learned how to read e-booksjmricker has learned how to read e-booksjmricker has learned how to read e-booksjmricker has learned how to read e-booksjmricker has learned how to read e-booksjmricker has learned how to read e-books
 
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)
But genre doesn't seem to get populated. Similar results with the .set_userdata method. Whats a better way to do this?

Thanks!
jmricker is offline   Reply With Quote