View Single Post
Old 02-03-2015, 10:39 AM   #1
ahisham
Junior Member
ahisham began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Aug 2014
Device: none
Set Custom Column from identify.py

Hi,

With reference to this post:
https://www.mobileread.com/forums/sho...3&postcount=11

My aim is to save a value for custom column retrieved from a metadata plugin like amazon.py. To confirm, I just need this once and will revert my code changes back once run.

@kovidgoyal suggested to modify the identify.py to be able to save the custom metadata. I tried (static data) this at end of merge function:

Code:
ans.set_user_metadata("#genre", {'#value#': ['Ebooks.Language.Java','Ebooks.Language.Python'], 'datatype':'text',
                            'is_multiple': '|', 'name': u'Genre'});
However, it didn't get saved!!

What else I need to modify to get it working ?
ahisham is offline   Reply With Quote