Novik / ruTorrent

Yet another web front-end for rTorrent
Other
2.01k stars 407 forks source link

Upload ETA #1391

Closed Windkracht8 closed 7 years ago

Windkracht8 commented 7 years ago

So I have rtorrent setup to automatically remove a torrent after the ratio has hit 200 (ratio.min.set=200). As I want to share my part, but also want to cleanup old stuff. With this in mind I was missing an Upload ETA column. Today I took some time to create it and want to share the diff with anybody interested in doing the same.

This patch assumes the httprpc plugin and a ration of 200. For automatic removal of torrent you will have this in your configuration:

Stop on ratio

ratio.enable= ratio.min.set=200 system.method.set = group.seeding.ratio.command, d.close=, d.erase=

And in my case also a call to a script for an email notification: system.method.set_key = event.download.erased,handle_erase,"execute={/usr/local/bin/torrentremoved,$d.get_name=,$d.get_directory=,$d.get_size_bytes=,$d.get_ratio=}"

Then apply this patch: ul_eta.txt

Windkracht8 commented 7 years ago

uploadeta.zip

Rewrite to make it a plugin.

enoch85 commented 7 years ago

Can you add this as a plugin by default?

Windkracht8 commented 7 years ago

I am not sure what you mean, also I am not a contributor of ruTorrent, I can not add it to the main branch. I've got it in my branch: https://github.com/Windkracht8/ruTorrent/tree/master/plugins/uploadeta So I could create a pull request.

enoch85 commented 7 years ago

@Windkracht8

I could create a pull request.

Please do.

Windkracht8 commented 7 years ago

https://github.com/Novik/ruTorrent/pull/1420