#!/bin/bash #Bitleecher script for bittorrent #Version 0.1b #Created by Raharu under the GNU General Public License ^^ #Si se llama sin ninguna opcion, actualiza la lista #Si se llama con la opcion l, imprime la lista existente #Si se llama con un numero, descarga el torrent correspondiente TMP="/tmp/bittorrent" #Directorio temporal DCC="$HOME/dcc" #Directorio de descarga URL="http://bittorrent.frozen-layer.net/" #Direccion web de los torrents if [ $# -eq 0 ]; then echo "Obteniendo lista actualizada" rm -rf $TMP mkdir $TMP wget bittorrent.frozen-layer.net -O $TMP/bittorrent.html cd $TMP csplit -ks bittorrent.html /archivo.php/ {*} #Divide el archivo html rm xx00 for i in $(ls xx??); do mv $i xx0`echo $i | cut -dx -f3` done for i in $(ls xx*); do #Procesa los links de descarga y nombres echo $URL`head $i --lines=1 | cut -d\" -f2` >> torrents echo `head $i --lines=1 |cut -d\" -f3 | cut -d\> -f2 | cut -d\< -f1` >> names done rm xx* clear nl names | less #Imprime la lista exit 1 fi if [ $@ = "l" ]; then echo "Listando torrents de descarga" nl $TMP/names | less exit 1 fi echo "Torrents descargados desde" echo $URL echo "-----------------------------------" echo "Obteniendo torrent numero $@" cd $TMP TORRENT=`cat torrents | head --lines=$@ | tail --lines=1` NAME=`cat names | head --lines=$NUM | tail lines=1` cd $DCC wget $TORRENT -O `echo $NAME.torrent` btdownloadcurses.py `echo $NAME.torrent` #Inicia la descarga #Si prefieres usar modo grafico, comenta la linea de arriba y descomenta la siguiente: #btdownloadgui.py `echo $NAME.torrent`
Yo lo llamo bitleecher.sh, para usarlo
Tan solo dadle permisos de ejecucion
$ chmod +x bitleecher.sh
y despues
$./bitleecher.sh -> Descarga una lista de bittorrent.frozen-layer.net
$./bitleecher.sh l -> Lista la existente sin refrescarla desde el server
$./bitleecher.sh 10 -> pone a bajar el torrent numero 10
La idea seria modificarlo para que visualizara las imagenes si la serie tuviera alguna y que se pudiera ajustar para descargar automaticamente una serie conforme fuera saliendo. Tambien estaria bien adaptarlo al btlaunchmany.py
Saludos, a ver si a alguien le sirve ;)