summaryrefslogtreecommitdiffstats
path: root/module/plugins/Plugin.py
diff options
context:
space:
mode:
authorGravatar mkaay <mkaay@mkaay.de> 2011-01-31 23:46:36 +0100
committerGravatar mkaay <mkaay@mkaay.de> 2011-01-31 23:46:36 +0100
commitf263d18eff143982095c829cc86858c8025247a5 (patch)
treec183ad531a3f1e6b3d72c89601efd524d1b08b01 /module/plugins/Plugin.py
parentproxy fix (diff)
downloadpyload-f263d18eff143982095c829cc86858c8025247a5.tar.xz
really fixed proxy support
Diffstat (limited to 'module/plugins/Plugin.py')
-rw-r--r--module/plugins/Plugin.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/module/plugins/Plugin.py b/module/plugins/Plugin.py
index 8af61c5fc..0a1eba0ee 100644
--- a/module/plugins/Plugin.py
+++ b/module/plugins/Plugin.py
@@ -224,6 +224,14 @@ class Plugin(object):
if self.ctresult:
self.self.ctresult.fail()
raise Retry
+
+ def invalidCaptcha(self):
+ if self.ctresult:
+ self.self.ctresult.fail()
+
+ def correctCaptcha(self):
+ if self.ctresult:
+ self.self.ctresult.success()
def decryptCaptcha(self, url, get={}, post={}, cookies=False, forceUser=False, imgtype="jpg"):
""" loads the catpcha and decrypt it or ask the user for input """