From d72a87e313c5206be99ab95c2d504e0be4f670c6 Mon Sep 17 00:00:00 2001 From: Yuchen Pei Date: Fri, 29 Apr 2022 17:53:17 +1000 Subject: Adding a script to generate magnet links using wget and transmission --- gen-magnet.sh | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 gen-magnet.sh diff --git a/gen-magnet.sh b/gen-magnet.sh new file mode 100755 index 0000000..d48d323 --- /dev/null +++ b/gen-magnet.sh @@ -0,0 +1,8 @@ +#!/bin/bash + +# Usage: +# ./generate-magnet.sh +# e.g. +# ./generate-magnet.sh https://www.gnu.org/licenses/agpl-3.0.txt agpl-3.0 + +wget "$1" -O "$2.txt" && transmission-create "$2.txt" -o "$2.txt.torrent" && transmission-show -m "$2.txt.torrent" && rm "$2.txt" "$2.txt.torrent" -- cgit v1.2.3