summaryrefslogtreecommitdiffstats
path: root/module/remote/thriftbackend/thriftgen/pyload/Pyload-remote
diff options
context:
space:
mode:
Diffstat (limited to 'module/remote/thriftbackend/thriftgen/pyload/Pyload-remote')
-rwxr-xr-xmodule/remote/thriftbackend/thriftgen/pyload/Pyload-remote47
1 files changed, 20 insertions, 27 deletions
diff --git a/module/remote/thriftbackend/thriftgen/pyload/Pyload-remote b/module/remote/thriftbackend/thriftgen/pyload/Pyload-remote
index 78d251501..20015ba43 100755
--- a/module/remote/thriftbackend/thriftgen/pyload/Pyload-remote
+++ b/module/remote/thriftbackend/thriftgen/pyload/Pyload-remote
@@ -35,12 +35,13 @@ if len(sys.argv) <= 1 or sys.argv[1] == '--help':
print ' bool isTimeDownload()'
print ' bool isTimeReconnect()'
print ' bool toggleReconnect()'
+ print ' getProgressInfo()'
print ' getConfig()'
print ' getGlobalPlugins()'
print ' getUserPlugins()'
print ' ConfigHolder configurePlugin(PluginName plugin)'
print ' void saveConfig(ConfigHolder config)'
- print ' void deleteConfig(ConfigHolder config)'
+ print ' void deleteConfig(PluginName plugin)'
print ' void setConfigHandler(PluginName plugin, InteractionID iid, JSONString value)'
print ' checkURLs(LinkList urls)'
print ' parseURLs(string html, string url)'
@@ -76,7 +77,8 @@ if len(sys.argv) <= 1 or sys.argv[1] == '--help':
print ' void restartFile(FileID fid)'
print ' void recheckPackage(PackageID pid)'
print ' void restartFailed()'
- print ' void setFilePaused(FileID fid, bool paused)'
+ print ' void stopDownloads( fids)'
+ print ' void stopAllDownloads()'
print ' void setPackagePaused(PackageID pid, bool paused)'
print ' bool setPackageFolder(PackageID pid, string path)'
print ' void setPackageData(PackageID pid, data)'
@@ -84,9 +86,6 @@ if len(sys.argv) <= 1 or sys.argv[1] == '--help':
print ' bool moveFiles( fids, PackageID pid)'
print ' void orderPackage( pids, i16 position)'
print ' void orderFiles( fids, PackageID pid, i16 position)'
- print ' getProgressInfo()'
- print ' void stopDownloads( fids)'
- print ' void stopAllDownloads()'
print ' bool isInteractionWaiting(i16 mode)'
print ' InteractionTask getInteractionTask(i16 mode)'
print ' void setInteractionResult(InteractionID iid, JSONString result)'
@@ -234,6 +233,12 @@ elif cmd == 'toggleReconnect':
sys.exit(1)
pp.pprint(client.toggleReconnect())
+elif cmd == 'getProgressInfo':
+ if len(args) != 0:
+ print 'getProgressInfo requires 0 args'
+ sys.exit(1)
+ pp.pprint(client.getProgressInfo())
+
elif cmd == 'getConfig':
if len(args) != 0:
print 'getConfig requires 0 args'
@@ -480,11 +485,17 @@ elif cmd == 'restartFailed':
sys.exit(1)
pp.pprint(client.restartFailed())
-elif cmd == 'setFilePaused':
- if len(args) != 2:
- print 'setFilePaused requires 2 args'
+elif cmd == 'stopDownloads':
+ if len(args) != 1:
+ print 'stopDownloads requires 1 args'
sys.exit(1)
- pp.pprint(client.setFilePaused(eval(args[0]),eval(args[1]),))
+ pp.pprint(client.stopDownloads(eval(args[0]),))
+
+elif cmd == 'stopAllDownloads':
+ if len(args) != 0:
+ print 'stopAllDownloads requires 0 args'
+ sys.exit(1)
+ pp.pprint(client.stopAllDownloads())
elif cmd == 'setPackagePaused':
if len(args) != 2:
@@ -528,24 +539,6 @@ elif cmd == 'orderFiles':
sys.exit(1)
pp.pprint(client.orderFiles(eval(args[0]),eval(args[1]),eval(args[2]),))
-elif cmd == 'getProgressInfo':
- if len(args) != 0:
- print 'getProgressInfo requires 0 args'
- sys.exit(1)
- pp.pprint(client.getProgressInfo())
-
-elif cmd == 'stopDownloads':
- if len(args) != 1:
- print 'stopDownloads requires 1 args'
- sys.exit(1)
- pp.pprint(client.stopDownloads(eval(args[0]),))
-
-elif cmd == 'stopAllDownloads':
- if len(args) != 0:
- print 'stopAllDownloads requires 0 args'
- sys.exit(1)
- pp.pprint(client.stopAllDownloads())
-
elif cmd == 'isInteractionWaiting':
if len(args) != 1:
print 'isInteractionWaiting requires 1 args'