From cec82f62825a2ac1ce2ede1ed5cecc72a179ae19 Mon Sep 17 00:00:00 2001 From: Rafael Marçalo Date: Sat, 5 Nov 2022 20:40:04 +0000 Subject: Deprecated TOR Proxy, apibay blocks it --- public/css/extra.css | 2 +- routes/settings.js | 6 +----- server/js/config.js | 6 +----- views/index.ejs | 2 +- views/settings.ejs | 7 +------ 5 files changed, 5 insertions(+), 18 deletions(-) diff --git a/public/css/extra.css b/public/css/extra.css index 8e34546..0e6d508 100644 --- a/public/css/extra.css +++ b/public/css/extra.css @@ -28,7 +28,7 @@ white-space: nowrap; } -.search-bar:focus::placeholder{ +.mandatory-text-box:focus::placeholder{ color: transparent; } diff --git a/routes/settings.js b/routes/settings.js index 6f3baf6..c616a4c 100644 --- a/routes/settings.js +++ b/routes/settings.js @@ -12,11 +12,7 @@ function save(req, res) let newConfig = { 'settings': { 'nsfw_content': ((req.body.nsfw === "on") ? true : false), - 'port': ((!isNaN(parseInt(req.body.port))) ? parseInt(req.body.port) : undefined), - 'tor': { - 'host': ((req.body.torHost) ? req.body.torHost : undefined), - 'port': ((!isNaN(parseInt(req.body.torPort))) ? parseInt(req.body.torPort) : undefined) - } + 'port': ((!isNaN(parseInt(req.body.port))) ? parseInt(req.body.port) : undefined) } }; diff --git a/server/js/config.js b/server/js/config.js index a184515..5e0bc7b 100644 --- a/server/js/config.js +++ b/server/js/config.js @@ -12,11 +12,7 @@ const defaultConfigPath = path.join(configFolder, 'config.json'); const defaultConfig = { 'settings': { 'nsfw_content': false, - 'port': undefined, - 'tor': { - 'host': undefined, - 'port': undefined - } + 'port': undefined } }; var loadedConfig = {}; diff --git a/views/index.ejs b/views/index.ejs index f934a13..cf3ad42 100644 --- a/views/index.ejs +++ b/views/index.ejs @@ -3,7 +3,7 @@
info_conver
- +

In order to download and seed the torrents, I recommend either using qBitorrent or transmission softwares

diff --git a/views/settings.ejs b/views/settings.ejs index 3538770..7587da8 100644 --- a/views/settings.ejs +++ b/views/settings.ejs @@ -19,12 +19,7 @@
- value="<%= config.settings.port %>" <% } %> id="port"> -
-
- - value="<%= config.settings.tor.host %>" <% } %> id="host"> - value="<%= config.settings.tor.port %>" <% } %> id="port"> + value="<%= config.settings.port %>" <% } %> id="port">
-- cgit v1.2.3