diff options
Diffstat (limited to 'pyload/datatype')
-rw-r--r-- | pyload/datatype/File.py | 6 | ||||
-rw-r--r-- | pyload/datatype/Package.py | 1 |
2 files changed, 5 insertions, 2 deletions
diff --git a/pyload/datatype/File.py b/pyload/datatype/File.py index 713442265..93aa636d7 100644 --- a/pyload/datatype/File.py +++ b/pyload/datatype/File.py @@ -217,7 +217,8 @@ class PyFile(object): """ formats and return wait time in humanreadable format """ seconds = self.waitUntil - time() - if seconds < 0: return "00:00:00" + if seconds < 0: + return "00:00:00" hours, seconds = divmod(seconds, 3600) minutes, seconds = divmod(seconds, 60) @@ -233,7 +234,8 @@ class PyFile(object): """ formats eta to readable format """ seconds = self.getETA() - if seconds < 0: return "00:00:00" + if seconds < 0: + return "00:00:00" hours, seconds = divmod(seconds, 3600) minutes, seconds = divmod(seconds, 60) diff --git a/pyload/datatype/Package.py b/pyload/datatype/Package.py index 7a36a1323..5ba42f596 100644 --- a/pyload/datatype/Package.py +++ b/pyload/datatype/Package.py @@ -4,6 +4,7 @@ from pyload.manager.Event import UpdateEvent from pyload.utils import safe_filename + class PyPackage(object): """ Represents a package object at runtime |