From bae9fe5760c2d7b442e158c1da9b117acccca938 Mon Sep 17 00:00:00 2001 From: Urban Guacamole Date: Sat, 1 Aug 2020 09:50:19 +0200 Subject: [PATCH] Add torrent name to magnet link So your torrent client shows the name of a torrent even before it downloads metadata --- static/resultpage/index.html | 2 +- static/resultpage/main.js | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/static/resultpage/index.html b/static/resultpage/index.html index 58fc4ca..49b975f 100644 --- a/static/resultpage/index.html +++ b/static/resultpage/index.html @@ -23,7 +23,7 @@ - + diff --git a/static/resultpage/main.js b/static/resultpage/main.js index fcad63a..8a55063 100644 --- a/static/resultpage/main.js +++ b/static/resultpage/main.js @@ -5,6 +5,11 @@ app = new Vue({ resultsFound: false, showProgress: false, progress: 0 + }, + methods: { + urlEncode: function (input) { + return encodeURIComponent(input) + } } })