From e30b7892ed77158dc2e518bf322dc0a0a4430d4e Mon Sep 17 00:00:00 2001 From: Thierry Merle Date: Fri, 14 Nov 2014 01:39:27 +0100 Subject: [RapidgatorNet] Set the language in COOKIES --- module/plugins/hoster/RapidgatorNet.py | 4 +++- module/plugins/hoster/TurbobitNet.py | 8 ++++---- 2 files changed, 7 insertions(+), 5 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'Download file (?P<N>.*)' SIZE_PATTERN = r'File size:\s*(?P[\d.,]+) (?P[\w^_]+)' OFFLINE_PATTERN = r'>(File not found|Error 404)' diff --git a/module/plugins/hoster/TurbobitNet.py b/module/plugins/hoster/TurbobitNet.py index c9d1ede34..6aa7bdd4a 100644 --- a/module/plugins/hoster/TurbobitNet.py +++ b/module/plugins/hoster/TurbobitNet.py @@ -27,14 +27,14 @@ class TurbobitNet(SimpleHoster): ("prOq", None)] - NAME_PATTERN = r'id="file-title">(?P.+?)<' - SIZE_PATTERN = r'class="file-size">(?P[\d.,]+) (?P[\w^_]+)' - OFFLINE_PATTERN = r'

File Not Found

|html\(\'File (?:was )?not found' - URL_REPLACEMENTS = [(__pattern__, "http://turbobit.net/\g.html")] COOKIES = [(".turbobit.net", "user_lang", "en")] + NAME_PATTERN = r'id="file-title">(?P.+?)<' + SIZE_PATTERN = r'class="file-size">(?P[\d.,]+) (?P[\w^_]+)' + OFFLINE_PATTERN = r'

File Not Found

|html\(\'File (?:was )?not found' + LINK_PATTERN = r'(?P/download/redirect/[^"\']+)' LIMIT_WAIT_PATTERN = r'
(\d+)<' -- cgit v1.2.3