summaryrefslogtreecommitdiffstats
path: root/module/plugins/ocr/NetloadIn.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/plugins/ocr/NetloadIn.py')
-rw-r--r--module/plugins/ocr/NetloadIn.py15
1 files changed, 8 insertions, 7 deletions
diff --git a/module/plugins/ocr/NetloadIn.py b/module/plugins/ocr/NetloadIn.py
index 9fc2f0725..0de88302e 100644
--- a/module/plugins/ocr/NetloadIn.py
+++ b/module/plugins/ocr/NetloadIn.py
@@ -4,6 +4,14 @@ from module.plugins.OCR import OCR
class NetloadIn(OCR):
__name__ = "NetloadIn"
+ __type__ = "ocr"
+ __version__ = "0.1"
+
+ __description__ = """Netload.in ocr plugin"""
+ __author_name__ = "pyLoad Team"
+ __author_mail__ = "admin@pyload.org"
+
+
def __init__(self):
OCR.__init__(self)
@@ -17,10 +25,3 @@ class NetloadIn(OCR):
self.result_captcha = self.result_captcha.replace(" ", "")[:4] # cut to 4 numbers
return self.result_captcha
-
-if __name__ == '__main__':
- import urllib
- ocr = NetloadIn()
- urllib.urlretrieve("http://netload.in/share/includes/captcha.php", "captcha.png")
-
- print ocr.get_captcha('captcha.png')