Yo uso un pequeño shell y añado los torrents via la interfaz web, asi puedo añadirlos des de el portatil o el PC del trabajo directament al servidor de casa.
test -z "$1" && echo "need magnet link! $0 <magnet link>" && exit -1 HOST="foo.bar o localhost" PORT="port" USER="foo" PASS="bar" LINK="$1" # set true if you want every torrent to be paused initially #PAUSED="true" PAUSED="false" SESSID=$(curl --silent --anyauth --user $USER:$PASS "http://$HOST:$PORT/transmission/rpc" | sed 's/.*<code>//g;s/<\/code>.*//g') res=`curl --silent --anyauth --user $USER:$PASS --header "$SESSID" "http://$HOST:$PORT/transmission/rpc" -d "{\"method\":\"torrent-add\",\"arguments\":{\"paused\":${PAUSED},\"filename\":\"${LINK}\"}}"` NOTIFY_NAME=`echo ${LINK} | sed -s 's/.*&dn=\([a-zA-Z0-9\.\-\_]*\).*/\1/' | tr ' ' '.'` NOTIFY_EXIT=`echo $res | tr '+' ' ' | sed 's/.*result"\?:"\?\([a-zA-Z ]*\)"\?.*/\1/'` NOTIFY_MSG="Sent $NOTIFY_NAME and $HOST says $NOTIFY_EXIT." echo $NOTIFY_MSG notify-send "$NOTIFY_MSG" 2> /dev/null Y con el xdg-open lo asocio a los magnets: echo "--- xdg-open 2012-02-18 14:22:48.058497027 +0200 +++ xdg-open 2012-02-18 14:24:04.326875223 +0200 @@ -440,6 +440,11 @@ exit_success fi fi + elif (echo "$1" | grep -q '^magnet:'); then + $SCRIPT_PATH "$1" + if [ $? -eq 0 ]; then + exit_success + fi fi" > $APP_PATH/xdg-open.patch Ajunto el script por si alguien le interesa. ./magnet.sh --install Installs the script and adds the link to xdg-open. ./magnet.sh "MAGNETURL" Sends the magnet link to the server | rael garcia arnes | @raelga | rtfm.es 2013/4/30 Pep Nieto <[email protected]> > Ok. Molt bona. > Me l'apunto > Salut, > > > > El dt 30 de 04 de 2013 a les 17:16 +0200, en/na tictacbum va escriure: > > jo també faig servir el transmission, i a l'iceweasel vaig fer això > > per que m'obrís els links magnet: > > > http://eldebiandepepe.wordpress.com/2012/03/21/como-asociar-los-magnet-link-con-firefox-o-iceweasel-en-debian/ > > > > > > > > El 29 d’abril de 2013 21.34, hubble <[email protected]> ha escrit: > > > > No dius si és el bittorrent en consola o amb el gui. A mi el > > del gui no m'agafava els magnets i em vaig passar al > > qbittorent que xuta molt bé. S'entén amb l'iceweasel i clicant > > a un magnet ells sol ja sap que ha d'obrirlo amb el > > qbittorrent (al menys un vegada et fa la pregunta i ja se la > > recorda per sempre). > > > > apa, sort. > > > > > > > > El Mon, 29 Apr 2013 21:20:23 +0200 > > Pep Nieto <[email protected]> va dir: > > > > > mm. > > > Jo faig servir Transmission al Wheezy, i haig de clicar amb > > el botó dret > > > el magnet "copia l'enllaç" i al transmission "obre l'URL". > > Al Bittorrent > > > no se... > > > Salut, > > > Pep > > > > > > > > > El dl 29 de 04 de 2013 a les 20:58 +0200, en/na Daniel Elias > > va > > > escriure: > > > > Hola: > > > > > > > > Un cop passada la festa, algú em podria ajudar a fer > > funcionar el > > > > Bittorrent desde Debian Wheezy? Li dono un magnet i es > > queda aturat. He > > > > estat remenant per Internet i no trobo el desllorigador. > > > > > > > > Gràcies i bona festa! M'agradaria molt venir, però em > > queda una mica > > > > lluny i amb molt mala combinació. > > > > > > > > Cordialment, > > > > > > > > -- > > > > Daniel Elias > > > > > > > > Usuari de Linux nº 461584 > > > > > > > > > > > > > > -- > > > --------------------------------- > > > Pep Nieto Luque | gpg.id F80D342E > > > Linux User 331482 > > > mail: [email protected] > > > http://about.me/josep_nieto > > > ICQ: 161111070 > > > (O__ > > > //\ > > > // ) > > > V__/_ > > > --------------------------------- > > > > > > > > > -- > > > To UNSUBSCRIBE, email to > > [email protected] > > > with a subject of "unsubscribe". Trouble? Contact > > [email protected] > > > Archive: > > http://lists.debian.org/1367263223.32078.1.camel@debian-pep > > > > > > > > > > > -- > > To UNSUBSCRIBE, email to > > [email protected] > > with a subject of "unsubscribe". Trouble? Contact > > [email protected] > > > > Archive: > > > http://lists.debian.org/[email protected] > > > > > > > > -- > --------------------------------- > Pep Nieto Luque | gpg.id F80D342E > Linux User 331482 > mail: [email protected] > http://about.me/josep_nieto > ICQ: 161111070 > (O__ > //\ > // ) > V__/_ > --------------------------------- >
magnet.sh
Description: Bourne shell script

