summaryrefslogtreecommitdiff
path: root/urnresolve
diff options
context:
space:
mode:
authorepoch <epoch@hack.thebackupbox.net>2021-10-30 00:27:43 +0000
committerepoch <epoch@hack.thebackupbox.net>2021-10-30 00:27:43 +0000
commit3c5cd5e68278f82cc071623419e1a205c6fee38b (patch)
tree72d8dc4493e399d7ea6cc094826e527ef9e4c564 /urnresolve
parent62817acef7618bd5d6e77ffabb39aabe33f5a37c (diff)
parentc38649558142ee7a02c176f373120f417633b022 (diff)
downloaduritools-3c5cd5e68278f82cc071623419e1a205c6fee38b.tar.gz
uritools-3c5cd5e68278f82cc071623419e1a205c6fee38b.zip
Merge branch 'master' of ssh://git.thebackupbox.net/uritools
Diffstat (limited to 'urnresolve')
-rwxr-xr-xurnresolve14
1 files changed, 14 insertions, 0 deletions
diff --git a/urnresolve b/urnresolve
index fc777a4..d59558f 100755
--- a/urnresolve
+++ b/urnresolve
@@ -25,6 +25,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
@@ -40,3 +50,7 @@ if [ "$nid" = "fcc" ];then
grep "^$nss2\s" $PREFIX/share/urn/fcc:frs | cut -f2
fi
fi
+
+if [ "$nid" = "btih" ];then
+ btih2magnet "$nss"
+fi