Thanks for the info.
I discovered that I can find the imported file type by looking for the first matching entry in the data table. From there it was a simple matter of modifying get_input_format_for_book to prefer this format over all others, giving me the result I wanted. I can now convert and restore defaults with impunity, knowing the original will always be used.
|