diff options
author | Walter Purcaro <vuolter@gmail.com> | 2014-07-20 03:28:23 +0200 |
---|---|---|
committer | Walter Purcaro <vuolter@gmail.com> | 2014-07-20 03:28:23 +0200 |
commit | a9f81c043c62abcb3ce38971237693736833fdbe (patch) | |
tree | 5c602d2aa7aefb245c33ad9c51eec44ab861f983 /module/plugins/hoster/GigapetaCom.py | |
parent | [StreamCz] Parse https (diff) | |
download | pyload-a9f81c043c62abcb3ce38971237693736833fdbe.tar.xz |
Fix hosters SH_COOKIES syntax
Diffstat (limited to 'module/plugins/hoster/GigapetaCom.py')
-rw-r--r-- | module/plugins/hoster/GigapetaCom.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/module/plugins/hoster/GigapetaCom.py b/module/plugins/hoster/GigapetaCom.py index bda11fc6f..566d044b4 100644 --- a/module/plugins/hoster/GigapetaCom.py +++ b/module/plugins/hoster/GigapetaCom.py @@ -31,11 +31,13 @@ class GigapetaCom(SimpleHoster): __author_name__ = "zoidberg" __author_mail__ = "zoidberg@mujmail.cz" - SH_COOKIES = [("http://gigapeta.com", "lang", "us")] FILE_NAME_PATTERN = r'<img src=".*" alt="file" />-->\s*(?P<N>.*?)\s*</td>' FILE_SIZE_PATTERN = r'<th>\s*Size\s*</th>\s*<td>\s*(?P<S>.*?)\s*</td>' OFFLINE_PATTERN = r'<div id="page_error">' + SH_COOKIES = [(".gigapeta.com", "lang", "us")] + + def handleFree(self): captcha_key = str(randint(1, 100000000)) captcha_url = "http://gigapeta.com/img/captcha.gif?x=%s" % captcha_key |