'This method is a call-back function used by AddEpubFormatsProgressDialog in dialogs.py
:param book_id: calibre ID of the book to add the encrypted epub to.
:param mi: calibre metadata object
:param path: path to the decrypted epub (temp file)'

def add_epub_format(self, book_id, mi, path):

    if self.db.add_format(book_id, u'EPUB', path, replace=False, run_hooks=False):
        self.successful_format_adds.append((book_id, mi))
        print(_(u'{0}    -    Successfully    added    EPUB    format    to    existing    {1}').format(((PLUGIN_NAME + u'    v') + PLUGIN_VERSION), mi.title))
        return True
    print(_(u"{0}    -    Error    adding    EPUB    format    to    existing    {1}.    This    really    shouldn't    happen.").format(((PLUGIN_NAME + u'    v') + PLUGIN_VERSION), mi.title))
    self.no_home_for_book.append(mi)
    return False
