From 4cc1babc1e7771268ad4ab71e90c0b9443db1c67 Mon Sep 17 00:00:00 2001 From: Nitzo Date: Sat, 18 Jun 2016 17:07:34 +0300 Subject: [RapidgatorNet] fix #2511 --- module/plugins/hoster/RapidgatorNet.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'module') 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: -- cgit v1.2.3