From 7c51916a61d53526c594a2115f1c0e6051a895d9 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 11 Jun 2019 10:46:33 +0200 Subject: Remove magnetURI download support Since most BitTorrent clients are not able to download files from it --- client/src/app/shared/video/modals/video-download.component.html | 5 ----- client/src/app/shared/video/modals/video-download.component.ts | 5 +---- 2 files changed, 1 insertion(+), 9 deletions(-) (limited to 'client/src/app') 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 } } -- cgit v1.2.3