diff options
author | Nick White <git@njw.name> | 2019-12-13 13:31:47 +0000 |
---|---|---|
committer | Nick White <git@njw.name> | 2019-12-13 13:31:47 +0000 |
commit | 700a8ed25067e4dc1ea7c66671d6117df57550ce (patch) | |
tree | 1ab8c17c40eca1f3e5711d99f651256ef4fb3091 /cmd | |
parent | 9d80e094ee18e7ee19a0cc35d7fac4bf35b0c744 (diff) |
Hopefully fix empty training bug
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/bookpipeline/main.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/bookpipeline/main.go b/cmd/bookpipeline/main.go index 022c118..3ce1f15 100644 --- a/cmd/bookpipeline/main.go +++ b/cmd/bookpipeline/main.go @@ -459,7 +459,7 @@ func ocrPage(msg bookpipeline.Qmsg, conn Pipeliner, process func(chan string, ch msgparts := strings.Split(msg.Body, " ") bookname := filepath.Dir(msgparts[0]) - if len(msgparts) > 1 { + if len(msgparts) > 1 && msgparts[1] != "" { process = ocr(msgparts[1]) } |