From 96c2c629372dc37575a5581711f194c1542d79a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Tue, 28 Oct 2014 08:42:39 +0100 Subject: [PATCH] enable ocr by default for PDF files --- ocrloader.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ocrloader.py b/ocrloader.py index 551fcd7..b65281c 100755 --- a/ocrloader.py +++ b/ocrloader.py @@ -127,7 +127,7 @@ while True: continue payload = file(filepath).read() logging.debug(' uploading file %s', filepath) - enable_ocr = (filename.startswith('ocr-') and filename.endswith('.pdf')) + enable_ocr = (not filename.startswith('no-ocr-') and filename.endswith('.pdf')) if not process(dict(cfg.items(section)), filename, payload, enable_ocr): logging.error(' error processing %s', filepath) else: