diff options
| author | 2010-05-17 00:01:05 +0200 | |
|---|---|---|
| committer | 2010-05-17 00:01:05 +0200 | |
| commit | 32ba2f79389ccf4f7d40197837c02d28bb13261d (patch) | |
| tree | 893de3556630eaa8242fa0fe3550039cab210b09 /module/plugins/captcha | |
| parent | new config option (outgoing intreface) (diff) | |
| download | pyload-32ba2f79389ccf4f7d40197837c02d28bb13261d.tar.xz | |
new plugin interface test, ShareonlineBiz + SerienjunkiesOrg + MegauploadedCom fix, other stuff
Diffstat (limited to 'module/plugins/captcha')
| -rw-r--r-- | module/plugins/captcha/captcha.py | 4 | 
1 files changed, 3 insertions, 1 deletions
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")  | 
