diff options
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") |