summaryrefslogtreecommitdiff
path: root/urnresolve
diff options
context:
space:
mode:
authorepoch <epoch@enzo.thebackupbox.net>2021-10-25 07:51:04 +0000
committerepoch <epoch@enzo.thebackupbox.net>2021-10-25 07:51:04 +0000
commit84940d9b57eb4a6ab07de6b7b3058ba3c46ac8c8 (patch)
tree9ec63b359c2cadea9800c94983c3da1804da44bb /urnresolve
parent86480f1eca8820cf67c95359780c62c3a89d4485 (diff)
downloaduritools-84940d9b57eb4a6ab07de6b7b3058ba3c46ac8c8.tar.gz
uritools-84940d9b57eb4a6ab07de6b7b3058ba3c46ac8c8.zip
auto-convert urn:btih to magnets using an external script on it... not sure where that script lives atm.
Diffstat (limited to 'urnresolve')
-rwxr-xr-xurnresolve4
1 files changed, 4 insertions, 0 deletions
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