From eac99875d6d9ec674435ffe66bce95659a3eac14 Mon Sep 17 00:00:00 2001 From: MaysWind Date: Sun, 22 May 2016 11:23:20 +0800 Subject: [PATCH] reduce request content --- app/scripts/controllers/list.js | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/app/scripts/controllers/list.js b/app/scripts/controllers/list.js index 48d069d..171b2da 100644 --- a/app/scripts/controllers/list.js +++ b/app/scripts/controllers/list.js @@ -52,15 +52,28 @@ var refreshDownloadTask = function () { var invokeMethod = null; var params = []; + var requestParams = [ + 'gid', + 'totalLength', + 'completedLength', + 'uploadSpeed', + 'downloadSpeed', + 'connections', + 'files', + 'bittorrent', + 'numSeeders', + 'seeder' + ]; if (location == 'downloading') { invokeMethod = aria2RpcService.tellActive; + params = [requestParams]; } else if (location == 'waiting') { invokeMethod = aria2RpcService.tellWaiting; - params = [0, 1000]; + params = [0, 1000, requestParams]; } else if (location == 'stopped') { invokeMethod = aria2RpcService.tellStopped; - params = [0, 1000]; + params = [0, 1000, requestParams]; } if (invokeMethod) {