From 84940d9b57eb4a6ab07de6b7b3058ba3c46ac8c8 Mon Sep 17 00:00:00 2001 From: epoch Date: Mon, 25 Oct 2021 07:51:04 +0000 Subject: auto-convert urn:btih to magnets using an external script on it... not sure where that script lives atm. --- urnresolve | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'urnresolve') diff --git a/urnresolve b/urnresolve index 1ce59be..e33f56e 100755 --- a/urnresolve +++ b/urnresolve @@ -39,3 +39,7 @@ if [ "$nid" = "fcc" ];then grep "^$nss2\s" $PREFIX/share/urn/fcc:frs | cut -f2 fi fi + +if [ "$nid" = "btih" ];then + btih2magnet "$nss" +fi -- cgit v1.2.3 From c38649558142ee7a02c176f373120f417633b022 Mon Sep 17 00:00:00 2001 From: epoch Date: Sat, 30 Oct 2021 00:24:59 +0000 Subject: urnresolve now resolves the made-up urn:phrack --- urnresolve | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'urnresolve') diff --git a/urnresolve b/urnresolve index e33f56e..4e6a39b 100755 --- a/urnresolve +++ b/urnresolve @@ -24,6 +24,16 @@ if [ "$nid" = "ietf" ];then fi fi +if [ "$nid" = "phrack" ];then + if [ "$nss" ];then + if [ "$nss2" ];then + echo "gopher://thebackupbox.net:70/0/phrack/issues/${nss}/${nss2}.txt" + else + echo "gopher://thebackupbox.net:70/1/phrack/issues/${nss}/" + fi + fi +fi + if [ "$nid" = "xkcd" ];then echo "https://xkcd.com/${nss}" fi -- cgit v1.2.3