aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/shared/video
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2019-06-11 10:46:33 +0200
committerChocobozzz <me@florianbigard.com>2019-06-11 10:46:33 +0200
commit7c51916a61d53526c594a2115f1c0e6051a895d9 (patch)
treeb2da6e2f047e4c29b67aa9b8bf64fadeb3baa564 /client/src/app/shared/video
parentfc8c024a1b1b1e439ef8f5b34513033920852b82 (diff)
downloadPeerTube-7c51916a61d53526c594a2115f1c0e6051a895d9.tar.gz
PeerTube-7c51916a61d53526c594a2115f1c0e6051a895d9.tar.zst
PeerTube-7c51916a61d53526c594a2115f1c0e6051a895d9.zip
Remove magnetURI download support
Since most BitTorrent clients are not able to download files from it
Diffstat (limited to 'client/src/app/shared/video')
-rw-r--r--client/src/app/shared/video/modals/video-download.component.html5
-rw-r--r--client/src/app/shared/video/modals/video-download.component.ts5
2 files changed, 1 insertions, 9 deletions
diff --git a/client/src/app/shared/video/modals/video-download.component.html b/client/src/app/shared/video/modals/video-download.component.html
index dd01c1388..935d01330 100644
--- a/client/src/app/shared/video/modals/video-download.component.html
+++ b/client/src/app/shared/video/modals/video-download.component.html
@@ -31,11 +31,6 @@
31 <input type="radio" name="download" id="download-torrent" [(ngModel)]="downloadType" value="torrent"> 31 <input type="radio" name="download" id="download-torrent" [(ngModel)]="downloadType" value="torrent">
32 <label i18n for="download-torrent">Torrent (.torrent file)</label> 32 <label i18n for="download-torrent">Torrent (.torrent file)</label>
33 </div> 33 </div>
34
35 <div class="peertube-radio-container">
36 <input type="radio" name="download" id="download-magnet" [(ngModel)]="downloadType" value="magnet">
37 <label i18n for="download-magnet">Torrent (magnet link)</label>
38 </div>
39 </div> 34 </div>
40 </div> 35 </div>
41 36
diff --git a/client/src/app/shared/video/modals/video-download.component.ts b/client/src/app/shared/video/modals/video-download.component.ts
index a07560f87..16f3621b4 100644
--- a/client/src/app/shared/video/modals/video-download.component.ts
+++ b/client/src/app/shared/video/modals/video-download.component.ts
@@ -12,7 +12,7 @@ import { Notifier } from '@app/core'
12export class VideoDownloadComponent { 12export class VideoDownloadComponent {
13 @ViewChild('modal') modal: ElementRef 13 @ViewChild('modal') modal: ElementRef
14 14
15 downloadType: 'direct' | 'torrent' | 'magnet' = 'torrent' 15 downloadType: 'direct' | 'torrent' = 'torrent'
16 resolutionId: number | string = -1 16 resolutionId: number | string = -1
17 17
18 video: VideoDetails 18 video: VideoDetails
@@ -57,9 +57,6 @@ export class VideoDownloadComponent {
57 57
58 case 'torrent': 58 case 'torrent':
59 return file.torrentDownloadUrl 59 return file.torrentDownloadUrl
60
61 case 'magnet':
62 return file.magnetUri
63 } 60 }
64 } 61 }
65 62