summaryrefslogtreecommitdiffstats
path: root/pyload/plugins/hoster/FilepupNet.py
diff options
context:
space:
mode:
Diffstat (limited to 'pyload/plugins/hoster/FilepupNet.py')
-rw-r--r--pyload/plugins/hoster/FilepupNet.py19
1 files changed, 10 insertions, 9 deletions
diff --git a/pyload/plugins/hoster/FilepupNet.py b/pyload/plugins/hoster/FilepupNet.py
index 6c2437f67..0b1247bf4 100644
--- a/pyload/plugins/hoster/FilepupNet.py
+++ b/pyload/plugins/hoster/FilepupNet.py
@@ -10,19 +10,20 @@ from pyload.plugins.internal.SimpleHoster import SimpleHoster, create_getInfo
class FilepupNet(SimpleHoster):
- __name__ = "FilepupNet"
- __type__ = "hoster"
- __version__ = "0.01"
+ __name__ = "FilepupNet"
+ __type__ = "hoster"
+ __version__ = "0.02"
__pattern__ = r'http://(?:www\.)?filepup\.net/files/\w+'
__description__ = """Filepup.net hoster plugin"""
- __authors__ = [("zapp-brannigan", "fuerst.reinje@web.de"),
- ("Walter Purcaro", "vuolter@gmail.com")]
+ __license__ = "GPLv3"
+ __authors__ = [("zapp-brannigan", "fuerst.reinje@web.de"),
+ ("Walter Purcaro", "vuolter@gmail.com")]
- FILE_NAME_PATTERN = r'>(?P<N>.+?)</h1>'
- FILE_SIZE_PATTERN = r'class="fa fa-archive"></i> \((?P<S>[\d.]+) (?P<U>\w+)'
+ NAME_PATTERN = r'>(?P<N>.+?)</h1>'
+ SIZE_PATTERN = r'class="fa fa-archive"></i> \((?P<S>[\d.,]+) (?P<U>[\w^_]+)'
OFFLINE_PATTERN = r'>This file has been deleted'
@@ -37,14 +38,14 @@ class FilepupNet(SimpleHoster):
def handleFree(self):
m = re.search(self.LINK_PATTERN, self.html)
if m is None:
- self.parseError("Download link not found")
+ self.error(_("Download link not found"))
dl_link = m.group(1)
self.download(dl_link, post={'task': "download"})
check = self.checkDownload({'html': re.compile("html")})
if check == "html":
- self.parseError("Downloaded file is an html file")
+ self.error(_("Downloaded file is an html page"))
getInfo = create_getInfo(FilepupNet)