From 6df63d825a5598a22825cca8c01cb18cb7dc81c6 Mon Sep 17 00:00:00 2001 From: Colin Date: Wed, 27 Sep 2023 18:22:11 +0000 Subject: [PATCH] sane-bt-search: clean up the jackett URLs --- pkgs/additional/sane-scripts/src/sane-bt-search | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/additional/sane-scripts/src/sane-bt-search b/pkgs/additional/sane-scripts/src/sane-bt-search index 4f4c4ab9d..34bfd39bd 100755 --- a/pkgs/additional/sane-scripts/src/sane-bt-search +++ b/pkgs/additional/sane-scripts/src/sane-bt-search @@ -197,6 +197,11 @@ class Torrent: logger.info(f"invalid magnet: {magnet}") magnet = None + if http_dl_uri: + # quirk: jackett responds with port number even if it's a default port number + # it still works, just adds noise to the output + http_dl_uri = http_dl_uri.replace('https://jackett.uninsane.org:443/', 'https://jackett.uninsane.org/') + if tracker_uri: # quirk: bakabt's post-login redirection fails if the slashes aren't just right tracker_uri = tracker_uri.replace('https://bakabt.me//', 'https://bakabt.me/')