mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-02-25 18:55:32 -06:00
Fix tests
This commit is contained in:
@@ -39,8 +39,9 @@ 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.');
|
||||
|
||||
@@ -30,6 +30,7 @@
|
||||
"reflect-metadata": "0.1.2",
|
||||
"rxjs": "5.0.0-beta.2",
|
||||
"systemjs": "0.19.22",
|
||||
"webtorrent": "^0.85.1",
|
||||
"zone.js": "0.5.15"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
||||
Reference in New Issue
Block a user