Skip to content

Commit

Permalink
Update GoBooDo.py for OCR
Browse files Browse the repository at this point in the history
  • Loading branch information
minamotorin authored Sep 28, 2021
1 parent 5fe2bde commit 9ddc8b8
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions GoBooDo.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,10 @@ def processBook(self):
downloadService.getImages(settings['max_retry_images']+1)
print('------------------- Creating PDF -------------------')
service = createBook(self.name, self.path)
service.makePdf()
if (settings.get('lang')):
service.ocrPdf(lang=settings['lang'])
else:
service.makePdf()

def start(self):
try:
Expand Down Expand Up @@ -222,4 +225,4 @@ def start(self):
sleep(retry_time)
else:
book = GoBooDo(args.id)
book.start()
book.start()

0 comments on commit 9ddc8b8

Please sign in to comment.