diff options
Diffstat (limited to 'pyload/plugins')
| -rw-r--r-- | pyload/plugins/hoster/RapidgatorNet.py | 4 | ||||
| -rw-r--r-- | pyload/plugins/hoster/TurbobitNet.py | 8 | 
2 files changed, 7 insertions, 5 deletions
| diff --git a/pyload/plugins/hoster/RapidgatorNet.py b/pyload/plugins/hoster/RapidgatorNet.py index f9efa2461..d7f06d990 100644 --- a/pyload/plugins/hoster/RapidgatorNet.py +++ b/pyload/plugins/hoster/RapidgatorNet.py @@ -14,7 +14,7 @@ from pyload.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)' diff --git a/pyload/plugins/hoster/TurbobitNet.py b/pyload/plugins/hoster/TurbobitNet.py index 087052ebd..e8a8ed9a6 100644 --- a/pyload/plugins/hoster/TurbobitNet.py +++ b/pyload/plugins/hoster/TurbobitNet.py @@ -27,14 +27,14 @@ class TurbobitNet(SimpleHoster):                         ("prOq", None)] -    NAME_PATTERN = r'id="file-title">(?P<N>.+?)<' -    SIZE_PATTERN = r'class="file-size">(?P<S>[\d.,]+) (?P<U>[\w^_]+)' -    OFFLINE_PATTERN = r'<h2>File Not Found</h2>|html\(\'File (?:was )?not found' -      URL_REPLACEMENTS = [(__pattern__, "http://turbobit.net/\g<ID>.html")]      COOKIES = [(".turbobit.net", "user_lang", "en")] +    NAME_PATTERN = r'id="file-title">(?P<N>.+?)<' +    SIZE_PATTERN = r'class="file-size">(?P<S>[\d.,]+) (?P<U>[\w^_]+)' +    OFFLINE_PATTERN = r'<h2>File Not Found</h2>|html\(\'File (?:was )?not found' +      LINK_PATTERN = r'(?P<url>/download/redirect/[^"\']+)'      LIMIT_WAIT_PATTERN = r'<div id=\'timeout\'>(\d+)<' | 
