summaryrefslogtreecommitdiff
path: root/cmd/rescribe/gui.go
diff options
context:
space:
mode:
authorNick White <git@njw.name>2022-02-23 12:56:36 +0000
committerNick White <git@njw.name>2022-02-23 12:56:36 +0000
commita4d9ca8671292f9028db51748f4f028746d9bdef (patch)
tree56f3bc34ea6cc7ca2a48f50e25c0ae8b736c0e1f /cmd/rescribe/gui.go
parent2c29e91bd98a1354d0cc4772ca629e3f1fc327b5 (diff)
rescribe: Add embedded support for getgbook, for linux only so far
Diffstat (limited to 'cmd/rescribe/gui.go')
-rw-r--r--cmd/rescribe/gui.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/rescribe/gui.go b/cmd/rescribe/gui.go
index fde660a..ad33a1e 100644
--- a/cmd/rescribe/gui.go
+++ b/cmd/rescribe/gui.go
@@ -245,7 +245,7 @@ func formatProgressBarText(bar *widget.ProgressBar) func() string {
}
// startGui starts the gui process
-func startGui(log log.Logger, cmd string, training string, tessdir string) error {
+func startGui(log log.Logger, cmd string, gbookcmd string, training string, tessdir string) error {
myApp := app.New()
myWindow := myApp.NewWindow("Rescribe OCR")
@@ -464,7 +464,7 @@ func startGui(log log.Logger, cmd string, training string, tessdir string) error
savedir = bookdir
fmt.Printf("Downloading Google Book\n")
- d, err := getGoogleBook(ctx, bookname, bookdir)
+ d, err := getGoogleBook(ctx, gbookcmd, bookname, bookdir)
if err != nil {
if !strings.HasSuffix(err.Error(), "signal: killed") {
msg := fmt.Sprintf("Error downloading Google Book %s: %v\n", bookname, err)