Skip to content

Commit 9cd4ec7

Browse files
committed
fix: pgs conversation fails because working path is not correct
1 parent d60b957 commit 9cd4ec7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

worker/step/PGStoSrtStep.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ func (p *PGSToSrtStepExecutor) convertPGSToSrt(ctx context.Context, tracker Trac
5555
"--input", inputFilePath,
5656
"--output", outputFilePath,
5757
"--tesseractlanguage", language,
58-
"--tesseractdata", pgsConfig.TesseractDataPath).SetWorkDir(jobContext.WorkingDir)
58+
"--tesseractdata", pgsConfig.TesseractDataPath)
5959
outLog := ""
6060
startRegex := regexp.MustCompile(`Starting OCR for (\d+) items`)
6161
progressRegex := regexp.MustCompile(`Processed item (\d+)`)

0 commit comments

Comments
 (0)