diff --git a/angular.html b/angular.html
index 97f2fd7..aa97ff2 100644
--- a/angular.html
+++ b/angular.html
@@ -139,7 +139,7 @@
- name {{download.gid}}
+ {{download.name}}
- Time left: {{(download.totalLength-download.completedLength)/download.downloadSpeed}}
diff --git a/js/ctrls/download.js b/js/ctrls/download.js
index 41edfd3..a7ba727 100644
--- a/js/ctrls/download.js
+++ b/js/ctrls/download.js
@@ -66,7 +66,7 @@ function(scope, rpc, utils) {
ctx[p] = d[p];
});
- var path = (data.files[0].path || data.files[0].uris[0].uri);
+ var path = (d.files[0].path || d.files[0].uris[0].uri);
ctx.name = utils.getFileName(path);
if (d.bittorrent && d.bittorrent.info) {
|