From 32ba2f79389ccf4f7d40197837c02d28bb13261d Mon Sep 17 00:00:00 2001 From: mkaay <mkaay@mkaay.de> Date: Mon, 17 May 2010 00:01:05 +0200 Subject: new plugin interface test, ShareonlineBiz + SerienjunkiesOrg + MegauploadedCom fix, other stuff --- module/plugins/captcha/captcha.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'module/plugins/captcha') diff --git a/module/plugins/captcha/captcha.py b/module/plugins/captcha/captcha.py index eec63b54f..db229c747 100644 --- a/module/plugins/captcha/captcha.py +++ b/module/plugins/captcha/captcha.py @@ -22,6 +22,7 @@ import logging import subprocess import tempfile import threading +from os import remove import Image @@ -105,7 +106,8 @@ class OCR(object): tmpSub.write("\n") tessparams.append("nobatch") tessparams.append(tmpSub.name) - + tmpSub.flush() + self.logger.debug("run tesseract") self.run(tessparams) self.logger.debug("read txt") -- cgit v1.2.3