summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster/CzshareCom.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-12-27 20:06:05 +0100
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-12-27 22:52:30 +0100
commit50c1d6c0642ac658a909481e412fd9e6e9a9a1d7 (patch)
tree5a90b85419a02f8b78ff4493dda32ba338b8aece /module/plugins/hoster/CzshareCom.py
parentUpdate crypters and containers (diff)
downloadpyload-50c1d6c0642ac658a909481e412fd9e6e9a9a1d7.tar.xz
Update some hosters
Diffstat (limited to 'module/plugins/hoster/CzshareCom.py')
-rw-r--r--module/plugins/hoster/CzshareCom.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/module/plugins/hoster/CzshareCom.py b/module/plugins/hoster/CzshareCom.py
index be4108c23..c2a7d3409 100644
--- a/module/plugins/hoster/CzshareCom.py
+++ b/module/plugins/hoster/CzshareCom.py
@@ -44,7 +44,7 @@ class CzshareCom(SimpleHoster):
USER_CREDIT_PATTERN = r'<div class="credit">\s*kredit: <strong>([\d .,]+)(\w+)</strong>\s*</div><!-- .credit -->'
- def check_traffic(self):
+ def out_of_traffic(self):
#: Check if user logged in
m = re.search(self.USER_CREDIT_PATTERN, self.data)
if m is None:
@@ -52,7 +52,7 @@ class CzshareCom(SimpleHoster):
self.data = self.load(self.pyfile.url)
m = re.search(self.USER_CREDIT_PATTERN, self.data)
if m is None:
- return False
+ return True
#: Check user credit
try:
@@ -61,13 +61,13 @@ class CzshareCom(SimpleHoster):
self.log_info(_("User %s has %i KiB left") % (self.account.user, credit / 1024))
if credit < self.pyfile.size:
self.log_info(_("Not enough credit to download file: %s") % self.pyfile.name)
- return False
+ return True
except Exception, e:
#: let's continue and see what happens...
self.log_error(e, trace=True)
- return True
+ return False
def handle_premium(self, pyfile):