diff options
author | Stefano <l.stickell@yahoo.it> | 2013-11-27 18:34:08 +0100 |
---|---|---|
committer | Stefano <l.stickell@yahoo.it> | 2013-12-15 22:14:50 +0100 |
commit | 43a171cdff91d731bb50e26503f425b408a68265 (patch) | |
tree | 71aa832fae5f7a5cde0f8caf5e34254a76c42bb8 /pyload/plugins/hoster/CrockoCom.py | |
parent | FilefactoryCom: fixed premium login. (diff) | |
download | pyload-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.py | 8 |
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) |