Remove magnetURI download support
Since most BitTorrent clients are not able to download files from it
This commit is contained in:
parent
fc8c024a1b
commit
7c51916a61
|
@ -31,11 +31,6 @@
|
||||||
<input type="radio" name="download" id="download-torrent" [(ngModel)]="downloadType" value="torrent">
|
<input type="radio" name="download" id="download-torrent" [(ngModel)]="downloadType" value="torrent">
|
||||||
<label i18n for="download-torrent">Torrent (.torrent file)</label>
|
<label i18n for="download-torrent">Torrent (.torrent file)</label>
|
||||||
</div>
|
</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>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
@ -12,7 +12,7 @@ import { Notifier } from '@app/core'
|
||||||
export class VideoDownloadComponent {
|
export class VideoDownloadComponent {
|
||||||
@ViewChild('modal') modal: ElementRef
|
@ViewChild('modal') modal: ElementRef
|
||||||
|
|
||||||
downloadType: 'direct' | 'torrent' | 'magnet' = 'torrent'
|
downloadType: 'direct' | 'torrent' = 'torrent'
|
||||||
resolutionId: number | string = -1
|
resolutionId: number | string = -1
|
||||||
|
|
||||||
video: VideoDetails
|
video: VideoDetails
|
||||||
|
@ -57,9 +57,6 @@ export class VideoDownloadComponent {
|
||||||
|
|
||||||
case 'torrent':
|
case 'torrent':
|
||||||
return file.torrentDownloadUrl
|
return file.torrentDownloadUrl
|
||||||
|
|
||||||
case 'magnet':
|
|
||||||
return file.magnetUri
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue