summaryrefslogtreecommitdiffstats
path: root/module/PyFile.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-06-05 11:52:35 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-06-05 11:52:35 +0200
commit44063bfd99228ef1e2570750f5d2d3621698160c (patch)
treebb262de04ee8d2659e29424101614d6d50c182a5 /module/PyFile.py
parentfix #324 (diff)
downloadpyload-44063bfd99228ef1e2570750f5d2d3621698160c.tar.xz
closed #323
Diffstat (limited to 'module/PyFile.py')
-rw-r--r--module/PyFile.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/module/PyFile.py b/module/PyFile.py
index 25e65e34a..90bbcbc42 100644
--- a/module/PyFile.py
+++ b/module/PyFile.py
@@ -234,13 +234,13 @@ class PyFile(object):
def getSize(self):
""" get size of download """
- if self.size:
- return self.size
- else:
- try:
+ try:
+ if self.plugin.req.size:
return self.plugin.req.size
- except:
- return 0
+ else:
+ return self.size
+ except:
+ return self.size
def notifyChange(self):
e = UpdateEvent("file", self.id, "collector" if not self.package().queue else "queue")