View Single Post
Old 12-10-2014, 07:45 AM   #5
Howlingwolf
Groupie
Howlingwolf has never been to obedience school.Howlingwolf has never been to obedience school.Howlingwolf has never been to obedience school.Howlingwolf has never been to obedience school.Howlingwolf has never been to obedience school.Howlingwolf has never been to obedience school.Howlingwolf has never been to obedience school.Howlingwolf has never been to obedience school.Howlingwolf has never been to obedience school.Howlingwolf has never been to obedience school.Howlingwolf has never been to obedience school.
 
Posts: 161
Karma: 44048
Join Date: Jan 2012
Device: Kobo Touch
Ah... What light through yonder window breaks...


I'm reading the metadata from the source file like this:
Code:
with open(src_file, 'rb') as tmp_file:
	src_metadata = get_metadata(tmp_file, src_type, force_read_metadata=True)
So naturally it won't contain the custom field...

OK. So if I'm interpreting this correctly. I need to add the custom field 'definition' to the source metadata object, THEN set the field data using .set()



EDIT:

That worked perfectly.

Thanks for your help. It's much appreciated.

Last edited by Howlingwolf; 12-10-2014 at 08:04 AM. Reason: Update
Howlingwolf is offline   Reply With Quote