diff options
author | 2014-07-14 02:23:37 +0200 | |
---|---|---|
committer | 2014-07-15 16:13:41 +0200 | |
commit | 48c0c42fd6faffc56432d5f037cd575979f180cc (patch) | |
tree | b8a57137e10e201f77328dca45e2951ece123e53 /module/plugins/captcha/ShareonlineBiz.py | |
parent | [l18n] Improved few source strings (diff) | |
download | pyload-48c0c42fd6faffc56432d5f037cd575979f180cc.tar.xz |
Removed all @author flags + key attributes cleanup for internal & hooks plugins
Diffstat (limited to 'module/plugins/captcha/ShareonlineBiz.py')
-rw-r--r-- | module/plugins/captcha/ShareonlineBiz.py | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/module/plugins/captcha/ShareonlineBiz.py b/module/plugins/captcha/ShareonlineBiz.py index 0c87b636d..7b739c295 100644 --- a/module/plugins/captcha/ShareonlineBiz.py +++ b/module/plugins/captcha/ShareonlineBiz.py @@ -1,5 +1,4 @@ # -*- coding: utf-8 -*- - # #Copyright (C) 2009 kingzero, RaNaN # @@ -17,10 +16,19 @@ # along with this program; if not, see <http://www.gnu.org/licenses/>. # ### -from captcha import OCR + +from module.plugins.OCR import OCR + class ShareonlineBiz(OCR): __name__ = "ShareonlineBiz" + __version__ = "0.1" + __type__ = "ocr" + + __description__ = """Shareonline.biz ocr plugin""" + __author_name__ = "RaNaN" + __author_mail__ = "RaNaN@pyload.org" + def __init__(self): OCR.__init__(self) @@ -46,8 +54,10 @@ class ShareonlineBiz(OCR): #tesseract at 60% + if __name__ == '__main__': import urllib + ocr = ShareonlineBiz() urllib.urlretrieve("http://www.share-online.biz/captcha.php", "captcha.jpeg") - print ocr.get_captcha('captcha.jpeg') + print ocr.get_captcha('captcha.jpeg') |