From: Chocobozzz Date: Tue, 11 Jun 2019 08:46:33 +0000 (+0200) Subject: Remove magnetURI download support X-Git-Tag: v1.4.0-rc.1~173 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=7c51916a61d53526c594a2115f1c0e6051a895d9;p=oweals%2Fpeertube.git Remove magnetURI download support Since most BitTorrent clients are not able to download files from it --- 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 @@ - -
- - -
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' 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 } }