Since most BitTorrent clients are not able to download files from it
<input type="radio" name="download" id="download-torrent" [(ngModel)]="downloadType" value="torrent">
<label i18n for="download-torrent">Torrent (.torrent file)</label>
</div>
-
- <div class="peertube-radio-container">
- <input type="radio" name="download" id="download-magnet" [(ngModel)]="downloadType" value="magnet">
- <label i18n for="download-magnet">Torrent (magnet link)</label>
- </div>
</div>
</div>
export class VideoDownloadComponent {
@ViewChild('modal') modal: ElementRef
- downloadType: 'direct' | 'torrent' | 'magnet' = 'torrent'
+ downloadType: 'direct' | 'torrent' = 'torrent'
resolutionId: number | string = -1
video: VideoDetails
case 'torrent':
return file.torrentDownloadUrl
-
- case 'magnet':
- return file.magnetUri
}
}