]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/angular/videos/components/watch/videos-watch.component.ts
Add typescript (and angular2) linter
[github/Chocobozzz/PeerTube.git] / client / angular / videos / components / watch / videos-watch.component.ts
index da7f942db4135fe865135eff0b37e11c8fc7dd3b..28786ebb9c129328727eae6e6f14b6b5f4f1445e 100644 (file)
@@ -39,15 +39,16 @@ export class VideosWatchComponent implements OnInit, CanDeactivate {
 
   loadVideo(video: Video) {
     this.video = video;
-
+    console.log('Adding ' + this.video.magnetUri + '.');
     this.client.add(this.video.magnetUri, (torrent) => {
+      console.log('Added ' + this.video.magnetUri + '.');
       torrent.files[0].appendTo(this._elementRef.nativeElement, (err) => {
         if (err) {
           alert('Cannot append the file.');
           console.error(err);
         }
-      })
-    })
+      });
+    });
   }
 
   routerCanDeactivate(next: ComponentInstruction, prev: ComponentInstruction) : any {