#/bin/bash
# programado por Juanmol para http://rsppi.blogspot.com
# modificado por netmess
tmp=/tmp/salida
series="$1"
IFS=','; for n in $series;
do
serie=$n;
for i in 1 2 3 4 5 6 7 8
do
wget "http://thepiratebay.se/search/$serie/0/7/0" -O $tmp ;
magnet=$(cat $tmp | grep magnet | head -$i | tail -1 |cut -f2 -d\");
capitulo=$(echo $magnet | sed 's/\ /\n/g' | sed 's/\./\n/g' | sed 's/\+/\n/g' | grep S | grep E)
echo "Descargar torrent de $capitulo y or n"
echo $magnet | cut -f3 -d'='
read answer
if [ "$answer" == "y" ]; then
transmission-remote localhost:9091 -a "$magnet" --auth=transmission:transmission -l;
else
continue
fi
done
done
No hay comentarios:
Publicar un comentario