diff options
author | Stefano <l.stickell@yahoo.it> | 2013-11-27 18:34:08 +0100 |
---|---|---|
committer | Stefano <l.stickell@yahoo.it> | 2013-11-27 18:34:08 +0100 |
commit | 2409c6ff5810dd4d7a2aa6c81006384b267cadc2 (patch) | |
tree | 55090b605aaccf3931f16c6b3768ccb1709642aa /module/plugins/hoster | |
parent | FilefactoryCom: fixed premium login. (diff) | |
download | pyload-2409c6ff5810dd4d7a2aa6c81006384b267cadc2.tar.xz |
CrockoCom: new pattern and using xrange.
See #391
Diffstat (limited to 'module/plugins/hoster')
-rw-r--r-- | module/plugins/hoster/CrockoCom.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/module/plugins/hoster/CrockoCom.py b/module/plugins/hoster/CrockoCom.py index 7d5336cd9..77c45ed92 100644 --- a/module/plugins/hoster/CrockoCom.py +++ b/module/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) |