Ticket #1342: addtorrent.sh

File addtorrent.sh, 179 bytes (added by shoveit, 12 years ago)

Add Magnet URI (less tracker info)

Line 
1#!/bin/bash
2
3echo "Add magnet hash:";
4
5while read inputline
6do
7hash=`echo "$inputline" | sed -e 's/\(&tr\).*//'`
8deluge-console add $hash
9
10if [ -z "${what}" ];
11then
12exit
13fi
14
15done