+ fileChange () {
+ const torrentfile = this.torrentfileInput.nativeElement.files[0]
+ if (!torrentfile) return
+
+ this.importVideo(torrentfile)
+ }
+
+ setTorrentFile (files: FileList) {
+ this.torrentfileInput.nativeElement.files = files
+ this.fileChange()
+ }
+
+ importVideo (torrentfile?: Blob) {