diff options
Diffstat (limited to 'pyload/remote')
-rw-r--r-- | pyload/remote/apitypes.py | 14 | ||||
-rw-r--r-- | pyload/remote/apitypes_debug.py | 8 | ||||
-rw-r--r-- | pyload/remote/pyload.thrift | 19 |
3 files changed, 29 insertions, 12 deletions
diff --git a/pyload/remote/apitypes.py b/pyload/remote/apitypes.py index 07e04d5de..555deca9f 100644 --- a/pyload/remote/apitypes.py +++ b/pyload/remote/apitypes.py @@ -34,10 +34,12 @@ class DownloadStatus: TempOffline = 11 Aborted = 12 NotPossible = 13 - Decrypting = 14 - Processing = 15 - Custom = 16 - Unknown = 17 + Missing = 14 + FileMismatch = 15 + Decrypting = 16 + Processing = 17 + Custom = 18 + Unknown = 19 class FileStatus: Ok = 0 @@ -489,6 +491,10 @@ class Iface(object): pass def removeAccount(self, account): pass + def removeFiles(self, fids): + pass + def removePackages(self, pids): + pass def removeUser(self, uid): pass def restart(self): diff --git a/pyload/remote/apitypes_debug.py b/pyload/remote/apitypes_debug.py index 382c3e178..74b86f3a8 100644 --- a/pyload/remote/apitypes_debug.py +++ b/pyload/remote/apitypes_debug.py @@ -58,8 +58,8 @@ methods = { 'checkLinks': OnlineCheck, 'createPackage': int, 'deleteConfig': None, - 'deleteFiles': None, - 'deletePackages': None, + 'deleteFiles': bool, + 'deletePackages': bool, 'findFiles': TreeCollection, 'findPackages': TreeCollection, 'freeSpace': int, @@ -106,6 +106,8 @@ methods = { 'quit': None, 'recheckPackage': None, 'removeAccount': None, + 'removeFiles': None, + 'removePackages': None, 'removeUser': None, 'restart': None, 'restartFailed': None, @@ -124,7 +126,7 @@ methods = { 'unpauseServer': None, 'updateAccount': AccountInfo, 'updateAccountInfo': None, - 'updatePackage': None, + 'updatePackage': PackageInfo, 'updateUserData': None, 'uploadContainer': int, } diff --git a/pyload/remote/pyload.thrift b/pyload/remote/pyload.thrift index c68bf5502..9b8415d0f 100644 --- a/pyload/remote/pyload.thrift +++ b/pyload/remote/pyload.thrift @@ -26,6 +26,8 @@ enum DownloadStatus { TempOffline, Aborted, NotPossible, + Missing, + FileMismatch, Decrypting, Processing, Custom, @@ -417,9 +419,9 @@ service Pyload { void addLinks(1: PackageID pid, 2: LinkList links) throws (1: PackageDoesNotExist e), void addLocalFile(1: PackageID pid, 2: string name, 3: string path) throws (1: PackageDoesNotExist e) - // these are real file operations and WILL delete files on disk - void deleteFiles(1: list<FileID> fids), - void deletePackages(1: list<PackageID> pids), // delete the whole folder recursive + // removes the links with out actually deleting the files + void removeFiles(1: list<FileID> fids), + void removePackages(1: list<PackageID> pids), // remove the whole folder recursive // Modify Downloads @@ -430,9 +432,9 @@ service Pyload { void stopDownloads(1: list<FileID> fids), void stopAllDownloads(), - //////////////////////////// + /////////////////////////////// // File Information retrieval - //////////////////////////// + /////////////////////////////// TreeCollection getAllFiles(), TreeCollection getFilteredFiles(1: DownloadState state), @@ -461,6 +463,9 @@ service Pyload { bool movePackage(1: PackageID pid, 2: PackageID root) throws (1: PackageDoesNotExist e), bool moveFiles(1: list<FileID> fids, 2: PackageID pid) throws (1: PackageDoesNotExist e), + bool deletePackages(1: list<PackageID> pids), // remove the whole folder recursive + bool deleteFiles(1: list<FileID> fids), + void orderPackage(1: list<PackageID> pids, 2: i16 position), void orderFiles(1: list<FileID> fids, 2: PackageID pid, 3: i16 position), @@ -525,6 +530,10 @@ service Pyload { JSONString invokeAddonHandler(1: PluginName plugin, 2: string func, 3: PackageID pid_or_fid) throws (1: ServiceDoesNotExist e, 2: ServiceException ex), + /////////////////////// + // Media finder + /////////////////////// + //scheduler |