diff --git a/src/oalc_creator/scrapers/queensland_legislation.py b/src/oalc_creator/scrapers/queensland_legislation.py index a91f6ca..c30eaa0 100644 --- a/src/oalc_creator/scrapers/queensland_legislation.py +++ b/src/oalc_creator/scrapers/queensland_legislation.py @@ -160,7 +160,7 @@ async def _get_doc(self, entry: Entry) -> Document | None: resp = (await self.get(Request(url))).stream # Extract the text of the document from the PDF with OCR. - text = await pdf2txt(resp, self.ocr_batch_size, self.thread_pool_executor) + text = await pdf2txt(resp, self.ocr_batch_size, self.thread_pool_executor, self.ocr_semaphore) # Store the mime of the document. mime = 'application/pdf'