summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar spoob <spoob@gmx.de> 2009-06-21 22:18:43 +0200
committerGravatar spoob <spoob@gmx.de> 2009-06-21 22:18:43 +0200
commit265af82f74fdab683d50791b54c82c210a6397b4 (patch)
tree3b9c67397c4260a43277f2f488c292df8201930f
parentplugin system changings (diff)
downloadpyload-265af82f74fdab683d50791b54c82c210a6397b4.tar.xz
Added Shareonline.biz captcha
-rw-r--r--captcha/ShareonlineBiz.py21
-rw-r--r--pluginconfig4
-rw-r--r--pyLoadCli.py6
3 files changed, 26 insertions, 5 deletions
diff --git a/captcha/ShareonlineBiz.py b/captcha/ShareonlineBiz.py
new file mode 100644
index 000000000..038f6639e
--- /dev/null
+++ b/captcha/ShareonlineBiz.py
@@ -0,0 +1,21 @@
+from captcha import OCR
+import urllib
+
+class ShareonlineBiz(OCR):
+ def __init__(self):
+ OCR.__init__(self)
+
+ def get_captcha(self, image):
+ urllib.urlretrieve("http://www.share-online.biz/captcha.php", "captcha.jpeg")
+ self.load_image(image)
+ #self.to_greyscale()
+ #self.image.save('grey.jpeg')
+ self.image.threshold(32500)
+ #self.threshold(1.3)
+ self.run_tesser()
+ self.image.save('captcha_bla.jpeg')
+ return self.result_captcha
+
+if __name__ == '__main__':
+ ocr = ShareonlineBiz()
+ print ocr.get_captcha('captcha.jpeg')
diff --git a/pluginconfig b/pluginconfig
index a4ebc74cc..2f4d7d35f 100644
--- a/pluginconfig
+++ b/pluginconfig
@@ -1,7 +1,7 @@
[RapidshareCom]
premium = False
-username = user
-password = pass
+username = name
+password = pw
[YoutubeCom]
high_quality = True
[YoutubeChannel]
diff --git a/pyLoadCli.py b/pyLoadCli.py
index 0e9f3df65..0d721136b 100644
--- a/pyLoadCli.py
+++ b/pyLoadCli.py
@@ -88,9 +88,9 @@ class pyLoadCli:
percent = download["percent"]
z = percent / 4
speed += download['speed']
- self.println(line, cyan(download["name"]))
+ self.println(line, blue(download["name"]))
line += 1
- self.println(line, blue("[") + yellow(z * "#" + (25-z) * " ") + blue("] ") + green(str(percent)+"%")+" DL: "+green(str(int(download['speed'])))+" kb/s ETA: " + green(self.format_time(download['eta'])))
+ self.println(line, blue("[") + yellow(z * "#" + (25-z) * " ") + blue("] ") + green(str(percent)+"%") + " Speed: " + green(str(int(download['speed'])) + " kb/s") +" Finished in: " + green(self.format_time(download['eta'])))
line += 1
if download["status"] == "waiting":
self.println(line, download["name"])
@@ -99,7 +99,7 @@ class pyLoadCli:
line += 1
self.println(line, "")
line += 1
- self.println(line, "Status: "+red("paused") if obj.status['pause'] else "Status: "+red("running") + " Speed: "+ red(str(int(speed))+" kb/s") + " Files in queue: "+ red(str(obj.status["queue"])) )
+ self.println(line, "Status: " + red("paused") if obj.status['pause'] else "Status: " + red("running") + " total Speed: " + red(str(int(speed)) + " kb/s") + " Files in queue: " + red(str(obj.status["queue"])))
line += 1
self.println(line, "")
line += 1