summaryrefslogtreecommitdiffstats
path: root/pyload/plugins/hoster/FilerNet.py
diff options
context:
space:
mode:
Diffstat (limited to 'pyload/plugins/hoster/FilerNet.py')
-rw-r--r--pyload/plugins/hoster/FilerNet.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/pyload/plugins/hoster/FilerNet.py b/pyload/plugins/hoster/FilerNet.py
index 5f1b6bea8..bf33f7fb3 100644
--- a/pyload/plugins/hoster/FilerNet.py
+++ b/pyload/plugins/hoster/FilerNet.py
@@ -31,14 +31,14 @@ class FilerNet(SimpleHoster):
def process(self, pyfile):
- if self.premium and (not self.SH_CHECK_TRAFFIC or self.checkTrafficLeft()):
+ if self.premium and (not self.FORCE_CHECK_TRAFFIC or self.checkTrafficLeft()):
self.handlePremium()
else:
self.handleFree()
def handleFree(self):
self.req.setOption("timeout", 120)
- self.html = self.load(self.pyfile.url, decode=not self.SH_BROKEN_ENCODING, cookies=self.SH_COOKIES)
+ self.html = self.load(self.pyfile.url, decode=not self.TEXT_ENCODING, cookies=self.COOKIES)
# Wait between downloads
m = re.search(r'musst du <span id="time">(\d+)</span> Sekunden warten', self.html)
@@ -54,7 +54,7 @@ class FilerNet(SimpleHoster):
if 'token' not in inputs:
self.parseError('Unable to detect token')
token = inputs['token']
- self.logDebug('Token: ' + token)
+ self.logDebug("Token: " + token)
self.html = self.load(self.pyfile.url, post={'token': token}, decode=True)
@@ -62,7 +62,7 @@ class FilerNet(SimpleHoster):
if 'hash' not in inputs:
self.parseError('Unable to detect hash')
hash_data = inputs['hash']
- self.logDebug('Hash: ' + hash_data)
+ self.logDebug("Hash: " + hash_data)
downloadURL = r''
recaptcha = ReCaptcha(self)
@@ -83,7 +83,7 @@ class FilerNet(SimpleHoster):
self.correctCaptcha()
break
else:
- self.logInfo('Wrong captcha')
+ self.logInfo("Wrong captcha")
self.invalidCaptcha()
if not downloadURL:
@@ -102,7 +102,7 @@ class FilerNet(SimpleHoster):
self.parseError("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)
+ self.logDebug("Direct link: " + dl)
self.download(dl, disposition=True)