From 240680dfa795a6bc5a43ebd5159d0ed17a168803 Mon Sep 17 00:00:00 2001 From: nikk gitanes Date: Sun, 3 Sep 2023 10:13:31 +0300 Subject: [PATCH] change hash to magnet link --- .../DialogTorrentDetailsContent/TorrentFunctions/index.jsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/web/src/components/DialogTorrentDetailsContent/TorrentFunctions/index.jsx b/web/src/components/DialogTorrentDetailsContent/TorrentFunctions/index.jsx index f5aeebc..64a93f8 100644 --- a/web/src/components/DialogTorrentDetailsContent/TorrentFunctions/index.jsx +++ b/web/src/components/DialogTorrentDetailsContent/TorrentFunctions/index.jsx @@ -21,6 +21,7 @@ const TorrentFunctions = memo( axios.post(viewedHost(), { action: 'rem', hash, file_index: -1 }).then(() => setViewedFileList()) const fullPlaylistLink = `${playlistTorrHost()}/${encodeURIComponent(name || title || 'file')}.m3u?link=${hash}&m3u` const partialPlaylistLink = `${fullPlaylistLink}&fromlast` + const magnet = `magnet:?xt=urn:btih:${hash}&dn=${encodeURIComponent(name || title)}` return ( <> @@ -73,7 +74,7 @@ const TorrentFunctions = memo( )} - +