summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster/FilerNet.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2014-10-19 14:52:42 +0200
committerGravatar Walter Purcaro <vuolter@gmail.com> 2014-10-19 14:52:42 +0200
commit2ae91b81a2f12a1c9b1f78524df78a2b3f1ef494 (patch)
treec33c610c953a7833adfe8e357417e73b1d5231d4 /module/plugins/hoster/FilerNet.py
parentparseError -> error now calls Fail instead Exception (diff)
downloadpyload-2ae91b81a2f12a1c9b1f78524df78a2b3f1ef494.tar.xz
Update hosters to self.error
Diffstat (limited to 'module/plugins/hoster/FilerNet.py')
-rw-r--r--module/plugins/hoster/FilerNet.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/module/plugins/hoster/FilerNet.py b/module/plugins/hoster/FilerNet.py
index 7534c669d..46c914e9b 100644
--- a/module/plugins/hoster/FilerNet.py
+++ b/module/plugins/hoster/FilerNet.py
@@ -16,7 +16,7 @@ from module.plugins.internal.SimpleHoster import SimpleHoster, create_getInfo
class FilerNet(SimpleHoster):
__name__ = "FilerNet"
__type__ = "hoster"
- __version__ = "0.05"
+ __version__ = "0.06"
__pattern__ = r'https?://(?:www\.)?filer\.net/get/(\w+)'
@@ -56,7 +56,7 @@ class FilerNet(SimpleHoster):
inputs = self.parseHtmlForm(input_names='token')[1]
if 'token' not in inputs:
- self.parseError('Unable to detect token')
+ self.error('Unable to detect token')
token = inputs['token']
self.logDebug("Token: " + token)
@@ -64,7 +64,7 @@ class FilerNet(SimpleHoster):
inputs = self.parseHtmlForm(input_names='hash')[1]
if 'hash' not in inputs:
- self.parseError('Unable to detect hash')
+ self.error('Unable to detect hash')
hash_data = inputs['hash']
self.logDebug("Hash: " + hash_data)
@@ -106,7 +106,7 @@ class FilerNet(SimpleHoster):
html = self.load(self.pyfile.url)
m = re.search(self.LINK_PATTERN, html)
if m is None:
- self.parseError("Unable to detect direct link, try to enable 'Direct download' in your user settings")
+ self.error("Unable to detect direct link, try to enable 'Direct download' in your user settings")
dl = 'http://filer.net' + m.group(1)
self.logDebug("Direct link: " + dl)