diff options
author | Nitzo <nitzo2001@yahoo.com> | 2016-06-18 16:07:34 +0200 |
---|---|---|
committer | Nitzo <nitzo2001@yahoo.com> | 2016-06-18 16:07:34 +0200 |
commit | 4cc1babc1e7771268ad4ab71e90c0b9443db1c67 (patch) | |
tree | d23027c2143141ec71fdaa6b4e4fa123e5fc37a4 /module | |
parent | Merge pull request #2500 from robbi/fix/#2168 (diff) | |
download | pyload-4cc1babc1e7771268ad4ab71e90c0b9443db1c67.tar.xz |
[RapidgatorNet] fix #2511
Diffstat (limited to 'module')
-rw-r--r-- | module/plugins/hoster/RapidgatorNet.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/module/plugins/hoster/RapidgatorNet.py b/module/plugins/hoster/RapidgatorNet.py index 3b11e1dc8..9556b8f36 100644 --- a/module/plugins/hoster/RapidgatorNet.py +++ b/module/plugins/hoster/RapidgatorNet.py @@ -15,10 +15,10 @@ from module.plugins.internal.misc import json, seconds_to_midnight class RapidgatorNet(SimpleHoster): __name__ = "RapidgatorNet" __type__ = "hoster" - __version__ = "0.43" + __version__ = "0.44" __status__ = "testing" - __pattern__ = r'http://(?:www\.)?(rapidgator\.net|rg\.to)/file/\w+' + __pattern__ = r'http://(?:www\.)?(?:rapidgator\.net|rg\.to)/file/\w+' __config__ = [("activated" , "bool", "Activated" , True), ("use_premium" , "bool", "Use premium account if available" , True), ("fallback" , "bool", "Fallback to free download if premium fails" , True), @@ -54,6 +54,8 @@ class RapidgatorNet(SimpleHoster): ADSCAPTCHA_PATTERN = r'(http://api\.adscaptcha\.com/Get\.aspx[^"\']+)' SOLVEMEDIA_PATTERN = r'http://api\.solvemedia\.com/papi/challenge\.script\?k=(.*?)"' + URL_REPLACEMENTS = [(r'//(?:www\.)?rg\.to/', "//rapidgator.net/")] + def setup(self): if self.account: |