summaryrefslogtreecommitdiffstats
path: root/pyload/plugin/internal/SimpleHoster.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-04-16 17:01:39 +0200
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-04-16 17:01:39 +0200
commit84169f4862fa257e0a8a47e5f3578e9ec97ccf4f (patch)
treedd18f97f02637f667b803796f2b456836204a5d5 /pyload/plugin/internal/SimpleHoster.py
parentMerge branch 'stable' into 0.4.10 (diff)
downloadpyload-84169f4862fa257e0a8a47e5f3578e9ec97ccf4f.tar.xz
Plugins cleanup
Diffstat (limited to 'pyload/plugin/internal/SimpleHoster.py')
-rw-r--r--pyload/plugin/internal/SimpleHoster.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/pyload/plugin/internal/SimpleHoster.py b/pyload/plugin/internal/SimpleHoster.py
index a215e6886..add54786f 100644
--- a/pyload/plugin/internal/SimpleHoster.py
+++ b/pyload/plugin/internal/SimpleHoster.py
@@ -728,8 +728,8 @@ class SimpleHoster(Hoster):
elif traffic == -1:
return True
else:
- size = self.pyfile.size / 1024
- self.logInfo(_("Filesize: %i KiB, Traffic left for user %s: %i KiB") % (size, self.user, traffic))
+ size = self.pyfile.size
+ self.logInfo(_("Filesize: %i KiB, Traffic left for user %s: %i KiB") % (size / 1024, self.user, traffic / 1024))
return size <= traffic
@@ -751,8 +751,6 @@ class SimpleHoster(Hoster):
self.retries = 0
raise Retry(_("Fallback to free download"))
- #@TODO: Remove in 0.4.10
-
def wait(self, seconds=0, reconnect=None):
return _wait(self, seconds, reconnect)