Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

Remove magnetURI download support

Chocobozzz7c51916a61d5
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 dd01c13886..935d013300 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 @@
<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>
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 a07560f876..16f3621b4a 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'
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
}
}