diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-06-05 11:52:35 +0200 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-06-05 11:52:35 +0200 |
commit | 44063bfd99228ef1e2570750f5d2d3621698160c (patch) | |
tree | bb262de04ee8d2659e29424101614d6d50c182a5 /module/PyFile.py | |
parent | fix #324 (diff) | |
download | pyload-44063bfd99228ef1e2570750f5d2d3621698160c.tar.xz |
closed #323
Diffstat (limited to 'module/PyFile.py')
-rw-r--r-- | module/PyFile.py | 12 |
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") |