Programmatically adding/editing metadata
I have a large number of text files that I have imported into Calibre, and then converted to .mobi format. Within each text file is the title and author's name.
What would be a possible approach to extracting this information, and then adding to the metadata? Would I need to first add metadata to the associated .opf file? Can I use Calibre, or will I need to use something like Visual Basic?