diff options
Diffstat (limited to 'pyload/plugins/hoster/RgHostNet.py')
| -rw-r--r-- | pyload/plugins/hoster/RgHostNet.py | 13 | 
1 files changed, 3 insertions, 10 deletions
diff --git a/pyload/plugins/hoster/RgHostNet.py b/pyload/plugins/hoster/RgHostNet.py index 82a5b88c5..353e62696 100644 --- a/pyload/plugins/hoster/RgHostNet.py +++ b/pyload/plugins/hoster/RgHostNet.py @@ -8,7 +8,7 @@ from pyload.plugins.internal.SimpleHoster import SimpleHoster, create_getInfo  class RgHostNet(SimpleHoster):      __name__    = "RgHostNet"      __type__    = "hoster" -    __version__ = "0.02" +    __version__ = "0.03"      __pattern__ = r'http://(?:www\.)?rghost\.net/\d+(?:r=\d+)?' @@ -17,17 +17,10 @@ class RgHostNet(SimpleHoster):      __authors__     = [("z00nx", "z00nx0@gmail.com")] -    INFO_PATTERN = r'<h1>\s+(<a[^>]+>)?(?P<N>[^<]+)(</a>)?\s+<small[^>]+>\s+\((?P<S>[^)]+)\)\s+</small>\s+</h1>' +    INFO_PATTERN    = r'<h1>\s+(<a[^>]+>)?(?P<N>[^<]+)(</a>)?\s+<small[^>]+>\s+\((?P<S>[^)]+)\)\s+</small>\s+</h1>'      OFFLINE_PATTERN = r'File is deleted|this page is not found' -    LINK_PATTERN = r'''<a\s+href="([^"]+)"\s+class="btn\s+large\s+download"[^>]+>Download</a>''' - -    def handleFree(self): -        m = re.search(self.LINK_PATTERN, self.html) -        if m is None: -            self.error(_("LINK_PATTERN not found")) -        download_link = m.group(1) -        self.download(download_link, disposition=True) +    LINK_FREE_PATTERN = r'<a\s+href="([^"]+)"\s+class="btn\s+large\s+download"[^>]+>Download</a>'  getInfo = create_getInfo(RgHostNet)  | 
