From 8318540e162cccbb049bebebc5aca03384a1e4e9 Mon Sep 17 00:00:00 2001 From: RaNaN Date: Sun, 29 Dec 2013 21:07:28 +0100 Subject: added progress type enum, new DebugCrypter + Hoster, little improvements for crypter api --- pyload/remote/apitypes.py | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) (limited to 'pyload/remote/apitypes.py') 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): -- cgit v1.2.3