summaryrefslogtreecommitdiffstats
path: root/pyload/plugins/hoster/CrockoCom.py
diff options
context:
space:
mode:
authorGravatar Stefano <l.stickell@yahoo.it> 2013-11-27 18:34:08 +0100
committerGravatar Stefano <l.stickell@yahoo.it> 2013-12-15 22:14:50 +0100
commit43a171cdff91d731bb50e26503f425b408a68265 (patch)
tree71aa832fae5f7a5cde0f8caf5e34254a76c42bb8 /pyload/plugins/hoster/CrockoCom.py
parentFilefactoryCom: fixed premium login. (diff)
downloadpyload-43a171cdff91d731bb50e26503f425b408a68265.tar.xz
CrockoCom: new pattern and using xrange.
See #391 (cherry picked from commit 2409c6ff5810dd4d7a2aa6c81006384b267cadc2)
Diffstat (limited to 'pyload/plugins/hoster/CrockoCom.py')
-rw-r--r--pyload/plugins/hoster/CrockoCom.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/pyload/plugins/hoster/CrockoCom.py b/pyload/plugins/hoster/CrockoCom.py
index 7d5336cd9..77c45ed92 100644
--- a/pyload/plugins/hoster/CrockoCom.py
+++ b/pyload/plugins/hoster/CrockoCom.py
@@ -10,8 +10,8 @@ from module.plugins.internal.CaptchaService import ReCaptcha
class CrockoCom(SimpleHoster):
__name__ = "CrockoCom"
__type__ = "hoster"
- __pattern__ = r"http://(www\.)?(crocko|easy-share).com/.*"
- __version__ = "0.14"
+ __pattern__ = r"http://(www\.)?(crocko|easy-share).com/\w+"
+ __version__ = "0.15"
__description__ = """Crocko Download Hoster"""
__author_name__ = ("zoidberg")
__author_mail__ = ("zoidberg@mujmail.cz")
@@ -32,7 +32,7 @@ class CrockoCom(SimpleHoster):
if "You need Premium membership to download this file." in self.html:
self.fail("You need Premium membership to download this file.")
- for i in range(5):
+ for _ in xrange(5):
found = re.search(self.CAPTCHA_URL_PATTERN, self.html)
if found:
url, wait_time = 'http://crocko.com' + found.group(1), found.group(2)
@@ -55,7 +55,7 @@ class CrockoCom(SimpleHoster):
recaptcha = ReCaptcha(self)
- for i in range(5):
+ for _ in xrange(5):
inputs['recaptcha_challenge_field'], inputs['recaptcha_response_field'] = recaptcha.challenge(captcha_key)
self.download(action, post=inputs)