コード例 #1
0
 def generate_book_outputs(book_json, cover_img=False):
     if args.create_html:
         generator.generate_book_html(book_json, cover_img)
     if args.create_epub:
         generator.generate_book_epub(book_json)
     if args.create_pdf:
         generator.generate_book_pdf(book_json, cover_img)
コード例 #2
0
def process_book_json(book_json, processed_books=0):
    if (args.create_html):
        generator.generate_book_html(book_json)
    if (args.create_epub):
        generator.generate_book_epub(book_json)
    if (args.create_pdf):
        generator.generate_book_pdf(book_json)
    return processed_books + 1