Integrate OCRmyPDF args into ansible config

This commit is contained in:
Fabian Koller
2020-12-29 22:43:52 +01:00
parent f1bd6f1a4c
commit ce8c968c79
2 changed files with 8 additions and 9 deletions

View File

@@ -183,10 +183,8 @@
line: "PAPERLESS_FILENAME_FORMAT={{ paperlessng_filename_format }}"
- regexp: "^#?PAPERLESS_OCR_LANGUAGE="
line: "PAPERLESS_OCR_LANGUAGE={{ paperlessng_ocr_languages | join('+') }}"
# - regexp: "^#PAPERLESS_OCR_USER_ARG="
# # TODO JSON dict required in conf
# # https://paperless-ng.readthedocs.io/en/latest/configuration.html#ocr-settings
# line: "PAPERLESS_OCR_USER_ARG=\"{{ paperlessng_ocrmypdf_args }}{{ ' --jbig2-lossy' if paperlessng_use_jbig2enc else '' }}\""
- regexp: "^#PAPERLESS_OCR_USER_ARG="
line: "PAPERLESS_OCR_USER_ARG={{ paperlessng_ocrmypdf_args | combine({'jbig2_lossy': true} if paperlessng_big2enc_lossy else {}) }}"
- regexp: "^#?PAPERLESS_TIME_ZONE="
line: "PAPERLESS_TIME_ZONE={{ paperlessng_time_zone }}"
no_log: yes