diff --git a/pkgs/by-name/sane-scripts/src/sane-bt-search b/pkgs/by-name/sane-scripts/src/sane-bt-search index 3acd114ff..3ac15cd40 100755 --- a/pkgs/by-name/sane-scripts/src/sane-bt-search +++ b/pkgs/by-name/sane-scripts/src/sane-bt-search @@ -253,6 +253,11 @@ class Torrent: 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/') + # quirk: bitmagnet doesn't populate the torrent page, except as a link to the website homepage. + # TODO: fix and upstream this into either Jackett or Bitmagnet + if tracker_uri == 'http://10.0.1.6:3333/': + infohash = magnet.replace('magnet:?xt=urn:btih:', '').split('&')[0] + tracker_uri = f"https://bitmagnet.uninsane.org/webui/torrents/permalink/{infohash}" if seeders is not None and pub_date is not None and title is not None and (magnet is not None or http_dl_uri is not None): pub_date = parse_time(pub_date)