diff options
author | 2013-12-29 21:07:28 +0100 | |
---|---|---|
committer | 2013-12-29 21:07:28 +0100 | |
commit | 8318540e162cccbb049bebebc5aca03384a1e4e9 (patch) | |
tree | 5b4dc38520a82b5c8044a026ab996be1d71a782e /pyload/remote/apitypes.py | |
parent | added auth to request class (diff) | |
download | pyload-8318540e162cccbb049bebebc5aca03384a1e4e9.tar.xz |
added progress type enum, new DebugCrypter + Hoster, little improvements for crypter api
Diffstat (limited to 'pyload/remote/apitypes.py')
-rw-r--r-- | pyload/remote/apitypes.py | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/pyload/remote/apitypes.py b/pyload/remote/apitypes.py index 555deca9f..ab68116c3 100644 --- a/pyload/remote/apitypes.py +++ b/pyload/remote/apitypes.py @@ -95,6 +95,15 @@ class Permission: Interaction = 32 Plugins = 64 +class ProgressType: + All = 0 + Other = 1 + Download = 2 + Decrypting = 4 + LinkCheck = 8 + Addon = 16 + FileOperation = 32 + class Role: Admin = 0 User = 1 @@ -300,15 +309,17 @@ class PackageStats(BaseObject): self.sizedone = sizedone class ProgressInfo(BaseObject): - __slots__ = ['plugin', 'name', 'statusmsg', 'eta', 'done', 'total', 'download'] + __slots__ = ['plugin', 'name', 'statusmsg', 'eta', 'done', 'total', 'owner', 'type', 'download'] - def __init__(self, plugin=None, name=None, statusmsg=None, eta=None, done=None, total=None, download=None): + def __init__(self, plugin=None, name=None, statusmsg=None, eta=None, done=None, total=None, owner=None, type=None, download=None): self.plugin = plugin self.name = name self.statusmsg = statusmsg self.eta = eta self.done = done self.total = total + self.owner = owner + self.type = type self.download = download class ServerStatus(BaseObject): |