'This method is a call-back function used by DecryptAddProgressDialog in dialogs.py to decrypt Kobo books
:param book: A KoboBook object that is to be decrypted.'

def get_decrypted_kobo_books(self, book):

    print(_(u'{0}    -    Decrypting    {1}').format(((PLUGIN_NAME + u'    v') + PLUGIN_VERSION), book.title))
    decrypted = self.decryptBook(book)
    if decrypted[u'success']:
        mi = get_metadata(decrypted[u'fileobj'], u'epub')
        bookmap = {u'EPUB': decrypted[u'fileobj'].name}
        self.books_to_add.append((mi, bookmap))
    else:
        print(_(u"{0}    -    Couldn't    decrypt    {1}").format(((PLUGIN_NAME + u'    v') + PLUGIN_VERSION), book.title))
        self.decryption_errors.append((book.title, _(u'decryption    errors')))
        return False
    return True
