diff options
| author | 2015-07-07 01:23:55 +0200 | |
|---|---|---|
| committer | 2015-07-07 01:23:55 +0200 | |
| commit | b1759bc440cd6013837697eb8de540914f693ffd (patch) | |
| tree | d170caf63d7f65e44d23ea2d91a65759a1665928 /module/plugins/hoster/GigapetaCom.py | |
| parent | [Plugin] Fix decoding in load method (diff) | |
| download | pyload-b1759bc440cd6013837697eb8de540914f693ffd.tar.xz | |
No camelCase style anymore
Diffstat (limited to 'module/plugins/hoster/GigapetaCom.py')
| -rw-r--r-- | module/plugins/hoster/GigapetaCom.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/module/plugins/hoster/GigapetaCom.py b/module/plugins/hoster/GigapetaCom.py index c2feeb6f8..bfa30358e 100644 --- a/module/plugins/hoster/GigapetaCom.py +++ b/module/plugins/hoster/GigapetaCom.py @@ -10,7 +10,7 @@ from module.plugins.internal.SimpleHoster import SimpleHoster, create_getInfo class GigapetaCom(SimpleHoster): __name__ = "GigapetaCom" __type__ = "hoster" - __version__ = "0.04" + __version__ = "0.05" __pattern__ = r'http://(?:www\.)?gigapeta\.com/dl/\w+' __config__ = [("use_premium", "bool", "Use premium account if available", True)] @@ -29,16 +29,16 @@ class GigapetaCom(SimpleHoster): COOKIES = [("gigapeta.com", "lang", "us")] - def handleFree(self, pyfile): + def handle_free(self, pyfile): captcha_key = str(random.randint(1, 100000000)) captcha_url = "http://gigapeta.com/img/captcha.gif?x=%s" % captcha_key self.req.http.c.setopt(pycurl.FOLLOWLOCATION, 0) for _i in xrange(5): - self.checkErrors() + self.check_errors() - captcha = self.decryptCaptcha(captcha_url) + captcha = self.decrypt_captcha(captcha_url) self.html = self.load(pyfile.url, post={ "captcha_key": captcha_key, "captcha": captcha, @@ -49,7 +49,7 @@ class GigapetaCom(SimpleHoster): self.link = m.group(1).rstrip() #@TODO: Remove .rstrip() in 0.4.10 break elif "Entered figures don`t coincide with the picture" in self.html: - self.invalidCaptcha() + self.invalid_captcha() else: self.fail(_("No valid captcha code entered")) |
