summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster/RgHostNet.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/plugins/hoster/RgHostNet.py')
-rw-r--r--module/plugins/hoster/RgHostNet.py15
1 files changed, 8 insertions, 7 deletions
diff --git a/module/plugins/hoster/RgHostNet.py b/module/plugins/hoster/RgHostNet.py
index dccc6e557..982e18eda 100644
--- a/module/plugins/hoster/RgHostNet.py
+++ b/module/plugins/hoster/RgHostNet.py
@@ -6,17 +6,18 @@ from module.plugins.internal.SimpleHoster import SimpleHoster, create_getInfo
class RgHostNet(SimpleHoster):
- __name__ = "RgHostNet"
- __type__ = "hoster"
- __version__ = "0.01"
+ __name__ = "RgHostNet"
+ __type__ = "hoster"
+ __version__ = "0.02"
__pattern__ = r'http://(?:www\.)?rghost\.net/\d+(?:r=\d+)?'
__description__ = """RgHost.net hoster plugin"""
- __author_name__ = "z00nx"
- __author_mail__ = "z00nx0@gmail.com"
+ __license__ = "GPLv3"
+ __authors__ = [("z00nx", "z00nx0@gmail.com")]
- FILE_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>'''
@@ -24,7 +25,7 @@ class RgHostNet(SimpleHoster):
def handleFree(self):
m = re.search(self.LINK_PATTERN, self.html)
if m is None:
- self.parseError("Unable to detect the direct link")
+ self.error(_("LINK_PATTERN not found"))
download_link = m.group(1)
self.download(download_link, disposition=True)