summaryrefslogtreecommitdiffstats
path: root/pyload/plugins/hoster/FilerNet.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2014-09-28 21:19:03 +0200
committerGravatar Walter Purcaro <vuolter@gmail.com> 2014-09-28 21:19:03 +0200
commit46c6fc74a4e423927554f024b78dbbbf33e982cd (patch)
treee7ff9580bb5e80b91e2bd9609409116a19c5941e /pyload/plugins/hoster/FilerNet.py
parentApi : Add brackets and pipe to urlmatcher (diff)
parent[XFileSharingPro] Fixed typo (diff)
downloadpyload-46c6fc74a4e423927554f024b78dbbbf33e982cd.tar.xz
Merge branch 'stable' into 0.4.10
Conflicts: pyload/plugins/crypter/MultiuploadCom.py pyload/plugins/crypter/SerienjunkiesOrg.py pyload/plugins/hooks/ExternalScripts.py pyload/plugins/hooks/ExtractArchive.py pyload/plugins/hooks/MergeFiles.py pyload/plugins/hoster/CatShareNet.py pyload/plugins/hoster/FilezyNet.py pyload/plugins/hoster/IFileWs.py pyload/plugins/hoster/PremiumTo.py pyload/plugins/hoster/SpeedyshareCom.py pyload/plugins/hoster/UptoboxCom.py pyload/plugins/hoster/XFileSharingPro.py pyload/plugins/hoster/ZippyshareCom.py
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)