'path is ignored by the new API'

def add_format_with_hooks(self, index, fmt, fpath, index_is_id=False, path=None, notify=True, replace=True):

    book_id = (index if index_is_id else self.id(index))
    ret = self.new_api.add_format(book_id, fmt, fpath, replace=replace, run_hooks=True, dbapi=self)
    self.notify(u'metadata', [book_id])
    return ret
