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.