transmission icon indicating copy to clipboard operation
transmission copied to clipboard

Add an option to 'remove torrent when finished'

Open calexil opened this issue 9 years ago • 22 comments

it's kinda silly this hasn't been implemented yet.

once a torrent has reached its desired share ratio there should be a checkbox to remove it automatically...otherwise it just sits there taking up space and cluttering the downloads area..

calexil avatar Mar 13 '17 05:03 calexil

+1

gsemet avatar Mar 13 '17 11:03 gsemet

was this ever fixed?

calexil avatar Jul 05 '17 17:07 calexil

I would say this is against "torrent netiquete". This is a feature that shouldn't be implemented. But this is just my opinion.

Can you please describe more detailed a use-case where this feature would be helpfull?

Maybe this is related #111?

buhtz avatar Jul 22 '17 12:07 buhtz

When a torrent is "finished", it is no more seeded. So it can be removed. Of course this after the Seed ratio has been reached.

gsemet avatar Jul 22 '17 13:07 gsemet

@buhtz when you have a couple dozen torrents seeding, and they reach the desired ratio.

there is no need to keep them in torrent list cluttering up the interface.

It is also an issue for people whose isp is shitty about seeding(even legally)

calexil avatar Jul 24 '17 18:07 calexil

+1

h0ek avatar Nov 24 '17 16:11 h0ek

I now use a torrent-done.sh function executed at the end of the download. But this should a simple option in transmission

gsemet avatar Nov 24 '17 17:11 gsemet

You can use flexget with the clean_transmission script for this.

NohaTech avatar Nov 28 '17 13:11 NohaTech

Wow, looks good. Thanks!

h0ek avatar Nov 30 '17 08:11 h0ek

This option would be obsolete when the seedtime option is implemented.

It's simply a special case where seedtime = 0, instead of maybe an hour or a day or week.

The seedtime issue is tracked here: https://github.com/transmission/transmission/issues/111

EDIT: Coming back after many months, I realize this feature request here has nothing to do with seedtime. This feature request is about autoremoving torrents or data.

This might be possible with a setting like

"autoremove": {true,false,withData}

xelra avatar May 24 '18 18:05 xelra

poke.

calexil avatar Jan 04 '19 17:01 calexil

poke

calexil avatar May 21 '19 22:05 calexil

I now use a torrent-done.sh function executed at the end of the download. But this should a simple option in transmission

Mind sharing your script here?

@xelra This could be connected with seed time. Something like: autoremove = after download complete, false, with data, after 1h of seed (or 1 day of seed etc). In my opinion seedtime and autoremove should be related.

h0ek avatar May 23 '19 06:05 h0ek

@h0ek Yes, you're right. If the seed time feature were implemented, you could simply set seedtime=0 and then torrent completion would invoke immediately.

In settings.json you would put

...
"script-torrent-done-enabled": true,
"script-torrent-done-filename": "/path/to/script.sh",
...

and the sript could look something like

#!/bin/bash

SERVER="localhost:9091 --auth user:pass"

transmission-remote $SERVER --torrent $TR_TORRENT_ID --remove-and-delete

@rodibin-at-placemaildotonline If you use this script right now, it's still gonna work, but torrent completion will only invoke either after the targeted ratio or seed-idle-time has been hit. I'm not sure whether it would work, if you set seedratio=0. The $TR_TORRENT_ID variable is an environment variable set by transmission, when calling the script.

xelra avatar May 23 '19 19:05 xelra

Any updates for this ?

afteroot avatar Jun 04 '20 09:06 afteroot

Any intention on implementing this feature?

Anan5a avatar Jun 26 '20 11:06 Anan5a

Seconded ^

fssbchico avatar Jul 09 '20 17:07 fssbchico

+1

Jesus-M avatar Jan 02 '22 17:01 Jesus-M

this is really still missing?

tracure1337 avatar Aug 20 '22 21:08 tracure1337

I'm also interested in it. But with deletion after X time. Why this is helpful? Some trackers has 4 days of minimum share, and the server space is limited. So that would be a way of share during 10 days (for example) and automatically clean torrents after share for some time in order to free its space to allow new ones be downloaded

xeviff avatar Nov 28 '22 19:11 xeviff

@gjalsem can you share your "torrent-done.sh"? :)

xeviff avatar Nov 28 '22 19:11 xeviff

@xeviff On linux you could use sleep or, even better, cron to schedule some actions.

killemov avatar Jan 15 '24 14:01 killemov

oh, thanks. But at the end I migrated to qBittorrent which has a tool for this kind of purpose. Not working fine for all my expectations, but it has many automations that solves most typical use cases.

xeviff avatar Jan 15 '24 15:01 xeviff