summaryrefslogtreecommitdiff
path: root/magnet
diff options
context:
space:
mode:
authorPatrick Simianer <p@simianer.de>2014-08-10 11:34:06 +0100
committerPatrick Simianer <p@simianer.de>2014-08-10 11:34:06 +0100
commit33b179f94342ffc08d53a66adcbdae5a331570a9 (patch)
treec3564bdaa3a4d40f38d79e9ba0bf581bb154e4a6 /magnet
parent5869505d64c04c536bdcd71a197ade918c36bf1c (diff)
fixes
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"