X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/069d8476540f79fb4c37ccd219d6b794656baf0d..35ccafef8a83575ac0bf5901b58630033aa95d1e:/apps/catalogue/management/commands/importbooks.py diff --git a/apps/catalogue/management/commands/importbooks.py b/apps/catalogue/management/commands/importbooks.py index 72878fe25..f51214d72 100644 --- a/apps/catalogue/management/commands/importbooks.py +++ b/apps/catalogue/management/commands/importbooks.py @@ -24,6 +24,8 @@ class Command(BaseCommand): help='Don\'t build EPUB file'), make_option('-T', '--no-build-txt', action='store_false', dest='build_txt', default=True, help='Don\'t build TXT file'), + make_option('-P', '--no-build-pdf', action='store_false', dest='build_pdf', default=True, + help='Don\'t build PDF file'), make_option('-w', '--wait-until', dest='wait_until', metavar='TIME', help='Wait until specified time (Y-M-D h:m:s)'), ) @@ -81,7 +83,8 @@ class Command(BaseCommand): try: book = Book.from_xml_file(file_path, overwrite=force, build_epub=options.get('build_epub'), - build_txt=options.get('build_txt')) + build_txt=options.get('build_txt'), + build_pdf=options.get('build_pdf')) files_imported += 1 if os.path.isfile(file_base + '.pdf'):