summaryrefslogtreecommitdiff
path: root/magnet
diff options
context:
space:
mode:
Diffstat (limited to 'magnet')
-rwxr-xr-xmagnet1
1 files changed, 1 insertions, 0 deletions
diff --git a/magnet b/magnet
index c60297d..b1b20ee 100755
--- a/magnet
+++ b/magnet
@@ -1,5 +1,6 @@
#!/bin/bash
+
cd ~/z
[[ "$1" =~ xt=urn:btih:([^&/]+) ]] || exit;
echo "d10:magnet-uri${#1}:${1}e" > "meta-${BASH_REMATCH[1]}.torrent"