summaryrefslogtreecommitdiffstats
path: root/module/plugins/Plugin.py
diff options
context:
space:
mode:
authorGravatar Jeix <devnull@localhost> 2010-08-04 18:35:54 +0200
committerGravatar Jeix <devnull@localhost> 2010-08-04 18:35:54 +0200
commit91939fb1a8c1bca5a99fabc797eee839f59fb88c (patch)
tree7f5d05a78613e62b6ee0c08b3eac891ee124e46d /module/plugins/Plugin.py
parentbetter output formatting, somefixes (diff)
downloadpyload-91939fb1a8c1bca5a99fabc797eee839f59fb88c.tar.xz
netload, ocr
Diffstat (limited to 'module/plugins/Plugin.py')
-rw-r--r--module/plugins/Plugin.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/module/plugins/Plugin.py b/module/plugins/Plugin.py
index 19b5983a6..29fdebde8 100644
--- a/module/plugins/Plugin.py
+++ b/module/plugins/Plugin.py
@@ -24,6 +24,8 @@ from os.path import join
from time import time
from time import sleep
+from random import randint
+
import sys
from os.path import exists
@@ -185,6 +187,7 @@ class Plugin(object):
Ocr = self.core.pluginManager.getCaptchaPlugin(self.__name__)
if Ocr:
+ sleep(randint(3000, 5000) / 1000.0)
ocr = Ocr()
result = ocr.get_captcha(temp.name)
else: