[feature request] stop seeding at certain ratio
[feature request] stop seeding at certain ratio
I did a quick search of the forums and this feature seems to already be in the Mac release. It would be great to have it in the GTK+ one too.
In any case, I'm happy to see Transmission as the default bittorrent application in Ubuntu Hardy, it's a great app. Nice work devs .
In any case, I'm happy to see Transmission as the default bittorrent application in Ubuntu Hardy, it's a great app. Nice work devs .
Re: [feature request] stop seeding at certain ratio
I was really amazed when i saw this wasn't in the GTK+ version
I so really really really need this setting
[edit]
I just noticed http://trac.transmissionbt.com/ticket/671, 8 months old ... how far are we now with these changes ?
[/edit]
I so really really really need this setting
[edit]
I just noticed http://trac.transmissionbt.com/ticket/671, 8 months old ... how far are we now with these changes ?
[/edit]
Re: [feature request] stop seeding at certain ratio
Would also like to see this feature in the GTK+ version... hrmm, all these things missing from Transmission in Linux... maybe I should go back to OSX?
Re: [feature request] stop seeding at certain ratio
Transmission is my favorite BT Client on both Mac and Linux. I'd love to have this feature in the gtk+ version. Please!
Re: [feature request] stop seeding at certain ratio
I'm amazed this is missing too. Makes it difficult, if not impossible, to effectively manage data-volumes.
I am surprised that Ubuntu has chosen Transmission at the default BT client when basic controls like this are still missing?
I am surprised that Ubuntu has chosen Transmission at the default BT client when basic controls like this are still missing?
Re: [feature request] stop seeding at certain ratio
It would be nice to be able to do this in the UI, but can be accomplished now using transmission-remote. I have accomplished this by activating the Web Interface on the Web tab of the preferences, restricting the access to localhost and, using a cronjob to run a transmission-remote script every minute that checks the status of each torrent and based on the status of the torrent, will stop (pause) the torrent. I have also configured the web access to require a username (uname in script below) and a password (passwd). The uname and passwd are overkill (maybe) as someone has to get on the machine before she could connect to the web interface as it is restricted to the localhost. If I want to check on the torrents remotely I ssh to the machine and use transmission-remote to do this. This is what my script looks like:
My script "trpause.sh" stops (pauses) any torrent with a status of Done. To do this based on a specific ratio would be a simple change. If you want this to run more often than once every minute you could modify the script to use "sleep nn" and have it run in the background instead of as a cronjob.
This is what my cronjob looks like:
I hope this helps and apologize if I have repeated information posted somewhere else, but I haven't come across it yet on the web.
-Joe
Code: Select all
#!/bin/sh
for i in `/usr/bin/transmission-remote -l -n uname:passwd | /bin/grep -v Ratio | /bin/grep Done | /usr/bin/awk '{ print $1 }'`
do
/usr/bin/transmission-remote -n uname:passwd -t $i -S
done
This is what my cronjob looks like:
Code: Select all
* * * * * /home/user/.bts/bin/trpause.sh >/dev/null 2>&1
-Joe
Re: [feature request] stop seeding at certain ratio
That's very cool. Thanks for sharing it!
Re: [feature request] stop seeding at certain ratio
Glad to contribute.
I hope it helps and maybe it will contribute to more people using transmission.
-joe
I hope it helps and maybe it will contribute to more people using transmission.
-joe
Re: [feature request] stop seeding at certain ratio
Here's a rewrite of the script with a seed ratio as the condition:
CORRECTION: Since transmission-remote -l rounds off the ratio to one decimal, for instance 1.05 shows as 1.1, this script is not working exactly right... I'll update the script after I test a new version that goes into detail (where transmission-remote does show the ratio with 2 decimal places).
Code: Select all
#!/bin/sh
TR_R=/usr/bin/transmission-remote
PORT=9091
USER=admin
PASS=password
RATIO=1.10
for i in `$TR_R $PORT -l -n $USER:$PASS | \
awk '$3 ~ "Done" && $6 >= R && $7 !~ "Stopped" { print $1 }' R=$RATIO`
do
$TR_R $PORT -n $USER:$PASS -t $i -S
done
Re: [feature request] stop seeding at certain ratio
Improved script:
- Uses up to 2 decimals as per torrent detailed ratio;
- Adds exceptions, which is a list of space separated numbers enumerating torrents that should not be stopped by this script. Example: EXCEPTIONS=( 1 16 ). The numbers come from the list shown with 'transmission-remote -l';
- The email sent by cron tells you what torrent was stopped;
- Changed to bash in order to use an array for the above list,
Code: Select all
#!/bin/bash
TR_R=/usr/bin/transmission-remote
PORT=9091
USER=user-name
PASS=password
RATIO=1.10
declare -a EXCEPTIONS=( )
for i in `$TR_R $PORT -l -n $USER:$PASS | \
awk '$3 ~ "Done" && $6 >= R && $7 !~ "Stopped" { print $1 }' R=$RATIO`
do
skip=0
for j in ${EXCEPTIONS[@]}
do
if [ $j -eq $i ]; then
skip=1
fi
done
if [ $skip -eq 0 ]; then
$TR_R $PORT -n $USER:$PASS -t $i -i | \
awk '/Ratio/ { if ($2 >= R) { print "Stopping: ", a[2]; exit 0; } else exit 1; }
/Name/ { split($0, a, ":"); }' R=$RATIO &&
$TR_R $PORT -n $USER:$PASS -t $i -S
fi
done
-
- Posts: 1
- Joined: Tue Feb 17, 2009 4:49 am
Re: [feature request] stop seeding at certain ratio
Looks like seed ratio limiting was added to libtransmission 3 days ago: http://trac.transmissionbt.com/changeset/7888. Then two days ago there was "attempt 1" to use this in the macosx client: http://trac.transmissionbt.com/changeset/7892.
Bet this feature is coming soon for the GTK+ client...
Bet this feature is coming soon for the GTK+ client...
Re: [feature request] stop seeding at certain ratio
Look at r7888 more closely, it's already in the GTK+ client now...thomasjack wrote:Looks like seed ratio limiting was added to libtransmission 3 days ago: http://trac.transmissionbt.com/changeset/7888. Then two days ago there was "attempt 1" to use this in the macosx client: http://trac.transmissionbt.com/changeset/7892.
Bet this feature is coming soon for the GTK+ client...