diff --git a/src/langs/zh_CN.json b/src/langs/zh_CN.json index 14767e6..89c70b9 100644 --- a/src/langs/zh_CN.json +++ b/src/langs/zh_CN.json @@ -86,7 +86,6 @@ "Status": "状态", "Speed": "速度", "(local)": "(本机)", - "Unknown Client": "未知客户端", "No Data": "无数据", "No connected peers": "没有连接到其他节点", "Failed to change some tasks state.": "修改一些任务状态时失败.", diff --git a/src/scripts/config/defaultLanguage.js b/src/scripts/config/defaultLanguage.js index 1ea709e..b16cefc 100644 --- a/src/scripts/config/defaultLanguage.js +++ b/src/scripts/config/defaultLanguage.js @@ -90,7 +90,6 @@ 'Status': 'Status', 'Speed': 'Speed', '(local)': '(local)', - 'Unknown Client': 'Unknown Client', 'No Data': 'No Data', 'No connected peers': 'No connected peers', 'Failed to change some tasks state.': 'Failed to change some tasks state.', diff --git a/src/scripts/services/aria2TaskService.js b/src/scripts/services/aria2TaskService.js index e3b111e..4b29307 100644 --- a/src/scripts/services/aria2TaskService.js +++ b/src/scripts/services/aria2TaskService.js @@ -150,7 +150,7 @@ task.selectedFileCount = selectedFileCount; } - + return task; }; @@ -182,13 +182,17 @@ if (peer.peerId) { var peerId = ariaNgCommonService.decodePercentEncodedString(peer.peerId); - var client = (peerId ? bittorrentPeeridService.parseClient(peerId) : null); + var clientInfo = (peerId ? bittorrentPeeridService.parseClient(peerId) : null); - if (client && client.client != 'unknown') { - peer.client = { - name: (client.client ? client.client.trim() : ''), - version: (client.version ? client.version.trim() : '') + if (clientInfo && clientInfo.client != 'unknown') { + var client = { + name: (clientInfo.client ? clientInfo.client.trim() : ''), + version: (clientInfo.version ? clientInfo.version.trim() : '') }; + + client.info = client.name + (client.version ? ' ' + client.version : ''); + + peer.client = client; } } } diff --git a/src/views/list.html b/src/views/list.html index 2613ef5..4803381 100644 --- a/src/views/list.html +++ b/src/views/list.html @@ -38,8 +38,8 @@