aboutsummaryrefslogtreecommitdiffhomepage
path: root/client
diff options
context:
space:
mode:
Diffstat (limited to 'client')
-rw-r--r--client/angular/videos/components/watch/videos-watch.component.ts3
-rw-r--r--client/package.json1
2 files changed, 3 insertions, 1 deletions
diff --git a/client/angular/videos/components/watch/videos-watch.component.ts b/client/angular/videos/components/watch/videos-watch.component.ts
index da7f942db..1a17e2b1a 100644
--- a/client/angular/videos/components/watch/videos-watch.component.ts
+++ b/client/angular/videos/components/watch/videos-watch.component.ts
@@ -39,8 +39,9 @@ export class VideosWatchComponent implements OnInit, CanDeactivate {
39 39
40 loadVideo(video: Video) { 40 loadVideo(video: Video) {
41 this.video = video; 41 this.video = video;
42 42 console.log('Adding ' + this.video.magnetUri + '.');
43 this.client.add(this.video.magnetUri, (torrent) => { 43 this.client.add(this.video.magnetUri, (torrent) => {
44 console.log('Added ' + this.video.magnetUri + '.');
44 torrent.files[0].appendTo(this._elementRef.nativeElement, (err) => { 45 torrent.files[0].appendTo(this._elementRef.nativeElement, (err) => {
45 if (err) { 46 if (err) {
46 alert('Cannot append the file.'); 47 alert('Cannot append the file.');
diff --git a/client/package.json b/client/package.json
index 78abde752..dbb065974 100644
--- a/client/package.json
+++ b/client/package.json
@@ -30,6 +30,7 @@
30 "reflect-metadata": "0.1.2", 30 "reflect-metadata": "0.1.2",
31 "rxjs": "5.0.0-beta.2", 31 "rxjs": "5.0.0-beta.2",
32 "systemjs": "0.19.22", 32 "systemjs": "0.19.22",
33 "webtorrent": "^0.85.1",
33 "zone.js": "0.5.15" 34 "zone.js": "0.5.15"
34 }, 35 },
35 "devDependencies": { 36 "devDependencies": {