summaryrefslogtreecommitdiffstats
path: root/module
diff options
context:
space:
mode:
authorGravatar Nitzo <nitzo2001@yahoo.com> 2016-06-18 16:07:34 +0200
committerGravatar Nitzo <nitzo2001@yahoo.com> 2016-06-18 16:07:34 +0200
commit4cc1babc1e7771268ad4ab71e90c0b9443db1c67 (patch)
treed23027c2143141ec71fdaa6b4e4fa123e5fc37a4 /module
parentMerge pull request #2500 from robbi/fix/#2168 (diff)
downloadpyload-4cc1babc1e7771268ad4ab71e90c0b9443db1c67.tar.xz
[RapidgatorNet] fix #2511
Diffstat (limited to 'module')
-rw-r--r--module/plugins/hoster/RapidgatorNet.py6
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: