From 5511da6289e80f91daf5dcb3b632068c02a24ccb Mon Sep 17 00:00:00 2001 From: Rigel Kent Date: Fri, 22 Jun 2018 16:29:01 +0200 Subject: Fix #639 providing magnet URI in player and download modal --- client/src/assets/player/peertube-player.ts | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'client/src/assets/player') diff --git a/client/src/assets/player/peertube-player.ts b/client/src/assets/player/peertube-player.ts index 6b8bba211..7c9a43ed9 100644 --- a/client/src/assets/player/peertube-player.ts +++ b/client/src/assets/player/peertube-player.ts @@ -143,6 +143,13 @@ function addContextMenu (player: any, videoEmbedUrl: string) { listener: () => { copyToClipboard(buildVideoEmbed(videoEmbedUrl)) } + }, + { + label: player.localize('Copy magnet URI'), + listener: function () { + const player = this + copyToClipboard(player.peertube().getCurrentVideoFile().magnetUri) + } } ] }) -- cgit v1.2.3