From 91939fb1a8c1bca5a99fabc797eee839f59fb88c Mon Sep 17 00:00:00 2001 From: Jeix Date: Wed, 4 Aug 2010 18:35:54 +0200 Subject: netload, ocr --- module/plugins/Plugin.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'module/plugins/Plugin.py') 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: -- cgit v1.2.3