James R. Barlow
579cef3649
watcher: Ensure output files are .pdf
2024-05-21 01:51:30 -07:00
James R. Barlow
8d30cff4ef
Undo future annotations from watcher.py till Typer fixes its issue
...
Fixes #1258
2024-02-20 19:14:39 -08:00
James R. Barlow
3a3635f7f9
Python 3.10 cleanup, manual fixes
2024-02-14 12:48:17 -08:00
James R. Barlow
f69267bb67
watcher: restore ability to read json from file or command line string
2023-11-07 18:05:29 -08:00
James R. Barlow
55566d9830
Fix watcher.py kwarg error
2023-11-05 13:58:24 -08:00
James R. Barlow
52d99732b1
Fix mistakes with watcher loglevel handling
2023-10-28 00:47:40 -07:00
James R. Barlow
c6be3ba076
watcher: Improve parameter validation
2023-10-20 20:11:00 -07:00
James R. Barlow
0565cb0b10
misc/watcher.py: use Typer and dotenv to improve ease of use
2023-10-20 19:56:39 -07:00
James R. Barlow
dc49906704
Improve wait_for_file_ready loop
2023-10-20 19:55:50 -07:00
James R. Barlow
4924b11b6b
Additional ruff fixes
2023-04-14 01:25:16 -07:00
comzine
2685f910b1
watcher: added setting RETRIES_LOADING_FILE to avoid giving up to early ( #1063 )
2023-01-25 17:36:54 -08:00
Doug Rinckes
d09f61d4fe
log completion message ( #1044 )
...
This logs the "done" message if neither delete nor archive options are set.
2022-12-14 17:24:41 -08:00
James R. Barlow
80ed2117cc
Change to SPDX license tracking
2022-07-28 01:10:07 -07:00
James R. Barlow
dc6f1a266a
Modernize type annotations
2022-07-23 00:39:24 -07:00
Julius Bullinger
7cabbb125f
watcher: Add an option to archive processed originals ( #951 )
...
* watcher: Add an option to archive processed originals
This adds a feature from existing OCRmyPDF watchdog Docker containers like meyay/ocrmypdf-batch and unze/ocrmypdf-watchdog. With this option, the input directory can be kept clean from already processed files, without losing the originals.
* docs: Improve watcher.py's Docker parameters documentation
2022-06-17 15:17:03 -07:00
James R. Barlow
0a110fac55
watcher: fix bool not working as expecting
...
Closes #821
2021-08-21 17:30:14 -07:00
Elliott Sales de Andrade
b923612323
Allow watchdog 2. ( #815 )
...
* Allow watchdog 2.
The breaking change was dropping support for macOS 10.12 and earlier,
which doesn't affect us.
* Add shebang to watcher script.
2021-08-04 02:48:25 -07:00
James R. Barlow
91db94cf2e
watcher: fix OCR_LOGLEVEL env var not processed
...
Closes #702
2020-12-27 02:02:44 -08:00
James R. Barlow
d0cdbd5e1c
watcher: include uppercase .PDF too
2020-11-12 02:29:47 -08:00
James R. Barlow
e824cdbc4e
Change license of misc/watcher.py to MIT
...
The authors of this file all agreed to relicense it under the MIT license.
https://github.com/jbarlow83/OCRmyPDF/issues/600
2020-08-04 23:57:41 -07:00
James R. Barlow
64891c2fc3
Pre-release delinting
2020-06-09 15:27:14 -07:00
James R. Barlow
fe156db41d
Merge branch 'release/v10' into trialmerge
2020-06-09 15:12:56 -07:00
James R. Barlow
33b68454f3
watcher: cleanup getenv casting
2020-05-08 03:49:49 -07:00
James R. Barlow
d96867e6ab
watcher: add polling and log level adjustment
2020-04-24 04:14:44 -07:00
James R. Barlow
dd1cf567db
watcher: Fix JSONDecodeError if OCR_JSON_SETTINGS not set
...
Fixes #516
2020-03-29 21:58:37 -07:00
James R. Barlow
9be533b5f4
watcher: allow all parameters to ocrmypdf.pdf to be passed by JSON
2020-03-15 21:45:51 -07:00
James R. Barlow
e40c60d4d8
watcher: add self to copyright
2020-03-03 00:59:57 -08:00
James R. Barlow
bdb7f92131
ifmain -> main()
2020-02-10 01:10:12 -08:00
James R. Barlow
b8a780d684
Wait for file based on pikepdf
2020-01-30 12:40:48 -08:00
James R. Barlow
82f393dd09
Order of events
2020-01-30 12:40:19 -08:00
James R. Barlow
4952af1604
watcher: some refactoring
2020-01-28 12:56:19 -08:00
Ian Alexander
3eab161771
Update logging and env var extensibility
2020-01-20 10:45:28 -08:00
Ian Alexander
b7f38e976b
Watched folder bug fixes, new flags, and docs updates.
2020-01-20 00:20:29 -08:00
James R. Barlow
e4e00de79f
Add improved example demonstrating watched folder functionality
...
Closes #466
2019-12-28 15:37:42 -08:00