diff options
author | Thierry Merle <thierry.merle@free.fr> | 2014-11-14 01:39:27 +0100 |
---|---|---|
committer | Walter Purcaro <vuolter@gmail.com> | 2014-11-14 01:39:27 +0100 |
commit | e30b7892ed77158dc2e518bf322dc0a0a4430d4e (patch) | |
tree | ce709b42e58d8fcc02ea2004d0369edce8202cb0 /module/plugins/hoster/RapidgatorNet.py | |
parent | [Plugin] Fix wait routine (thx rlindner81) (diff) | |
download | pyload-e30b7892ed77158dc2e518bf322dc0a0a4430d4e.tar.xz |
[RapidgatorNet] Set the language in COOKIES
Diffstat (limited to 'module/plugins/hoster/RapidgatorNet.py')
-rw-r--r-- | module/plugins/hoster/RapidgatorNet.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/module/plugins/hoster/RapidgatorNet.py b/module/plugins/hoster/RapidgatorNet.py index 11d318333..48f16172d 100644 --- a/module/plugins/hoster/RapidgatorNet.py +++ b/module/plugins/hoster/RapidgatorNet.py @@ -14,7 +14,7 @@ from module.plugins.internal.SimpleHoster import SimpleHoster, create_getInfo class RapidgatorNet(SimpleHoster): __name__ = "RapidgatorNet" __type__ = "hoster" - __version__ = "0.25" + __version__ = "0.26" __pattern__ = r'http://(?:www\.)?(rapidgator\.net|rg\.to)/file/\w+' @@ -28,6 +28,8 @@ class RapidgatorNet(SimpleHoster): API_URL = "http://rapidgator.net/api/file" + COOKIES = [(".rapidgator.net", "lang", "en")] + NAME_PATTERN = r'<title>Download file (?P<N>.*)</title>' SIZE_PATTERN = r'File size:\s*<strong>(?P<S>[\d.,]+) (?P<U>[\w^_]+)</strong>' OFFLINE_PATTERN = r'>(File not found|Error 404)' |