#!/bin/bash

echo "Add magnet hash:";

while read inputline
do
hash=`echo "$inputline" | sed -e 's/\(&tr\).*//'`
deluge-console add $hash

if [ -z "${what}" ];
then
exit
fi

done
