Remove magnetURI download support

Since most BitTorrent clients are not able to download files from it
pull/1902/head
Chocobozzz 2019-06-11 10:46:33 +02:00
parent fc8c024a1b
commit 7c51916a61
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
2 changed files with 1 additions and 9 deletions

View File

@ -31,11 +31,6 @@
<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>

View File

@ -12,7 +12,7 @@ import { Notifier } from '@app/core'
export class VideoDownloadComponent {
@ViewChild('modal') modal: ElementRef
downloadType: 'direct' | 'torrent' | 'magnet' = 'torrent'
downloadType: 'direct' | 'torrent' = 'torrent'
resolutionId: number | string = -1
video: VideoDetails
@ -57,9 +57,6 @@ export class VideoDownloadComponent {
case 'torrent':
return file.torrentDownloadUrl
case 'magnet':
return file.magnetUri
}
}