summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick White <git@njw.name>2021-12-06 12:21:35 +0000
committerNick White <git@njw.name>2021-12-06 12:21:35 +0000
commit04f22644422e7f8ee5326569ae2d0f212903cabd (patch)
treeea51b6ca030838aff25e741162a00846997d6108
parent31a610fd23cc4f41d677a70353460085dbf20572 (diff)
pipeline: process jpg or png regardless of whether in wipe or preprocess queue
-rw-r--r--cmd/rescribe/main.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/rescribe/main.go b/cmd/rescribe/main.go
index da38c96..59d8166 100644
--- a/cmd/rescribe/main.go
+++ b/cmd/rescribe/main.go
@@ -550,8 +550,8 @@ func downloadbook(dir string, name string, conn Pipeliner) error {
}
func processbook(training string, tesscmd string, conn Pipeliner) error {
- origPattern := regexp.MustCompile(`[0-9]{4}.jpg$`)
- wipePattern := regexp.MustCompile(`[0-9]{4,6}(.bin)?.png$`)
+ origPattern := regexp.MustCompile(`[0-9]{4}.(jpg|png)$`)
+ wipePattern := regexp.MustCompile(`[0-9]{4,6}(.bin)?.(jpg|png)$`)
ocredPattern := regexp.MustCompile(`.hocr$`)
var checkPreQueue <-chan time.Time