Hi
Where can I download 1.76? Transmission 1.80 frequently crashes on my wl500gp
Hi
Where can I download 1.76? Transmission 1.80 frequently crashes on my wl500gp
1.80 working well on my v1 -
BTW - thanks to avberk for keeping trans maintained for my white angel
Hi there, my intentions were to move finished download (once when finished and seeding) to new location. My programming skills are kind of limited ) but I've tried (with googling and using part of other script) and I've prepared small script if anyone is interested. It took me 15 minutes and it is sufficient for me for now.
If you can advise on some improvements, deficiencies or other way to do it I am willing to learn something.
Works with Transmission 1.61
LIMITATIONS:
1) This will work only for one completed torrent with status Seeding for each execution. TODO: Repeat it until all torrents are moved-should be easy.
2) If torrent is seeded again from new location it might be a big problem TODO: Fix it, but I have no idea how to.
SETTINGS:
I've set up this to stop and move data to different location (I can start seeding manually or delete torrent afterward). This can be adjusted by options in the last line.
USE:
cron (repeat every x minutes/hour/daily)
Code:#!/bin/sh # The absolute path to and including the transmission-remote binary TRANSREMOTE=/opt/bin/transmission-remote # The absolute path to where you want your completed torrents moved to DESTDIR=/mnt/data/_downloads # Find the first completed torrent TORRENTID=`$TRANSREMOTE -l | sed -n '/Seeding/{p;q;}'|sed -e 's/...%.*//'|sed 's/^[ \t]*//;s/[ \t]*$//'` if [ -z $TORRENTID ]; then echo "Nothing is finished!" exit fi # Stop the torrent and move data to the new location $TRANSREMOTE -t $TORRENTID -S --move $DESTDIR
Update:
I've found easier way to do some stuff and solved all TODOs Any ideas or questions are welcomed.
Code:#!/bin/sh # The absolute path to and including the transmission-remote binary TRANSREMOTE=/opt/bin/transmission-remote # The absolute path to where you want your completed torrents moved to DESTDIR=/mnt/data/_downloads # Find completed torrents SEEDCOUNT=`$TRANSREMOTE -l | awk '/Idle|Seeding/'|wc -l` TORRENTS=`$TRANSREMOTE -l | awk '/Idle|Seeding/'|awk '{print$1}'` if [ $SEEDCOUNT = "0" ]; then echo "Nothing is finished!" exit fi for i in $TORRENTS do LOCATION=`$TRANSREMOTE -t $i -i|awk '/Location/'|sed -e 's/ Location: //'` if [ $LOCATION = $DESTDIR ]; then echo "Files are already there" else # Stop the torrent and move data to the new location $TRANSREMOTE -t $i -S --move $DESTDIR fi done
Last edited by Pedro83; 13-06-2009 at 20:43.
Im sorry for the stupid question... but where am I suposed to copy this code?
I extended your script a bit. Also using some stuff from other sources, particularly the transmissionbt-wiki.
It now does the following:
-Remove torrents that are finished and done seeding (or just sit around idle).
-Move completed torrents to download dir.
-Add new torrents from torrent-folder, given there is space left in the dl queue.
Did I forget anything?? Without the need to seed, this would be simpler, but we wanna be got bt-citizens after all...
I'm still testing this. use at your own risk.Code:#!/bin/sh # ************* REMOTE="/usr/local/bin/transmission-remote" DESTDIR=/media/Finished TORRENTDIR=/media/Torrents MAXACTIVE="6" USER=xx PASS=xx # ************* # Clean up after rsync find $DESTDIR -mindepth 1 -type d -empty | xargs -I {} -i rmdir "{}" # Remove Finished and Inactive FINISHED="$($REMOTE -l -n $USER:$PASS | tail --lines=+2 | grep 100% | grep "Stopped\|Idle" | awk '{ print $1; }')" for i in $FINISHED; do echo Torrent No. $FINISHED is finished and inactive. LOCATION=`$REMOTE -n $USER:$PASS -t $i -i | awk '/Location/'|sed -e 's/ Location: //'` if [ $LOCATION = $DESTDIR ]; then echo "Files have been moved already. Just deleting." $REMOTE -n $USER:$PASS -t $i -r else echo "Moving No. $i to download-folder." $REMOTE -n $USER:$PASS -t $i --move $DESTDIR && chmod -R 777 $DESTDIR && $REMOTE -n $USER:$PASS -t $i -r echo Removed $i from queue. fi done # Move Finished FINISHED="$($REMOTE -l -n $USER:$PASS | tail --lines=+2 | grep 100% | awk '{ print $1; }')" for i in $FINISHED; do echo Torrent No. $i is finished. LOCATION=`$REMOTE -n $USER:$PASS -t $i -i | awk '/Location/'|sed -e 's/ Location: //'` if [ $LOCATION = $DESTDIR ]; then echo "Files have been moved already" else echo "Moving No. $i to download-folder." $REMOTE -n $USER:$PASS -t $i --move $DESTDIR && chmod -R 777 $DESTDIR fi done # Add new torrents and delete source file. ACTIVE="$[ $($REMOTE -n $USER:$PASS -l | grep -v Stopped | wc -l) - 2 ]" echo $ACTIVE active torrents. if [ $ACTIVE -ge $MAXACTIVE ]; then echo Queue full. exit 0 else until [ $ACTIVE = $MAXACTIVE ] || [ $(ls $TORRENTDIR | wc -l) = 0 ] ; do ADD="$(find $TORRENTDIR -name '*'.torrent | head -n1)" $REMOTE -n $USER:$PASS -a "${ADD}" &> /dev/null rm -f "${ADD}" echo "Added "${ADD}"" ACTIVE="$[ $($REMOTE -n $USER:$PASS -l | grep -v Stopped | wc -l) - 2 ]" echo $ACTIVE active torrents. done fi exit 0
Last edited by bugmenot; 18-08-2009 at 12:56. Reason: Updated code.
Hi guys,
I´ve tried both scrtipts, but no one works.
First probably doesn´t work, because transmission uses password. The longer script give me this error codes:
Any idea whats wrong?Code:[admin@Asus RTR transmission]$ ./tran_mov.sh ./tran_mov.sh: ./tran_mov.sh: 14: find: not found ./tran_mov.sh: ./tran_mov.sh: 14: xargs: not found tail: illegal option -- - BusyBox v1.1.3 (2008.03.17-18:24+0000) multi-call binary Usage: tail [OPTION]... [FILE]... tail: illegal option -- - BusyBox v1.1.3 (2008.03.17-18:24+0000) multi-call binary Usage: tail [OPTION]... [FILE]... $[ 3 - 2 ] active torrents. [: 3: unknown operand [: 3: unknown operand ./tran_mov.sh: ./tran_mov.sh: 59: find: not found Added localhost:9091 responded: "invalid or corrupt torrent file" $[ 3 - 2 ] active torrents. [: 3: unknown operand ./tran_mov.sh: ./tran_mov.sh: 59: find: not found Added localhost:9091 responded: "invalid or corrupt torrent file" $[ 3 - 2 ] active torrents. [: 3: unknown operand ./tran_mov.sh: ./tran_mov.sh: 59: find: not found Added localhost:9091 responded: "invalid or corrupt torrent file" $[ 3 - 2 ] active torrents. [: 3: unknown operand ./tran_mov.sh: ./tran_mov.sh: 59: find: not found Added localhost:9091 responded: "invalid or corrupt torrent file" $[ 3 - 2 ] active torrents. [: 3: unknown operand ./tran_mov.sh: ./tran_mov.sh: 59: find: not found Added
I have installed transmission according to Wengi's great tutorial and it has worked fine since then. However now I would like to run it as non-root user.
How should I do this? Should I ipkg install sudo? Should I use some configuration option in transmission's settings.json? Or some other way?
Oh, and one more thing I haven't figured out in Transmission: How can I set upload rate for a single file? In the web gui there's only option for global settings. And transmission-remote doesn't seem to have any options for this either. I know the OS X version has this function.
(And yes I've asked the transmission forums too... no replies )
Just for your information:
- New transmission 1.80 is available with support for magnet links and trackerless torrents (see http://transmissionbt.com
- Unfortunately this version frequently crashes - in my case it survives from 5 minutes to 1 hour.
- My recomendation is to stay with older version until fixes are made
There are patches to rtorrent that add magnet links support.
http://www.howtoforge.com/how-to-com...t-link-support
Maybe somebody compile it for Oleg.
Additionally new versions (1.80 1.81 1.82) have speed problems: downloads are very slow
Transmission 1.83 still crashes. Links to older transmission releases are available here: http://wl500g.info/showthread.php?t=17957