[Plugin] Ratio

Suggest, post, or discuss plugins for Deluge
holocronweaver
New User
New User
Posts: 1
Joined: Sun Feb 25, 2018 5:41 am

[Plugin] Ratio

Postby holocronweaver » Sun Feb 25, 2018 6:12 am

Use your status bar to track your total uploads, downloads, and share ratio across all torrents.

Currently two items are available in preferences: 1) toggle to save upload/download totals across Deluge sessions (default on, otherwise you would start from zero each session), 2) a button to reset your totals.

Nothing fancy. Just remember: sharing is caring! :D

Egg Releases: https://github.com/holocronweaver/deluge-ratio/releases
Source and README: https://github.com/holocronweaver/deluge-ratio/

Tested on Linux and Windows using Deluge 1.3.15, but should work on MacOS as well.

Does not currently work with web UI, but if anyone wants to add such functionality I'll happily accept a PR. Currently using the stock GTK plus symbol for the status bar icon, but looking for a better icon to replace it.

p.s. - I realize there are plugins that do parts of this already, but I couldn't find one that worked exactly the way I wanted: optionally track total down/up across sessions and show the ratio and totals in the status bar. I'm surprised this seemingly isn't built into Deluge. It's an important feature of modern torrent clients as it encourages sharing ALL your downloads by gamifying with an overall score. Maybe in 2.0?
Attachments
Ratio-0.1-py2.7.egg
Ratio v0.1
(13.83 KiB) Downloaded 1993 times

shamael
Compulsive Poster
Compulsive Poster
Posts: 591
Joined: Sat Oct 08, 2016 9:28 am

Re: [Plugin] Ratio

Postby shamael » Mon Feb 26, 2018 1:58 pm

Not tested yet but thx for sharing your work!

macie73
New User
New User
Posts: 1
Joined: Wed Mar 21, 2018 5:44 pm

Re: [Plugin] Ratio

Postby macie73 » Wed Mar 21, 2018 5:49 pm

thanks, this looks like what i needed, but i think something is wrong with the tooltip. It reads "Ratio = Total Downloads / Total Uploads".
Shouldn't that the other way round? like "Ratio = Total Uploads / Total Downloads"? or even better "Ratio = Total Uploaded / Total Downloaded"?
the numbers themselves are correct, it's just the text when you hover over the toolbar. :)
thx!

Aleron Ives
New User
New User
Posts: 5
Joined: Wed Jul 29, 2020 1:48 am

Re: [Plugin] Ratio

Postby Aleron Ives » Fri Jul 31, 2020 12:08 am

I made an updated egg to fix the tooltip and ratio calculation. All I did was replicate the two commits listed in this PR:

https://github.com/holocronweaver/delug ... /2/commits

I don't know why holo never uploaded a new egg after committing the changes, but this egg should do the trick.
Attachments
Ratio-0.1-py2.7.egg
(16.49 KiB) Downloaded 43 times

Bobby
Member
Member
Posts: 16
Joined: Wed Aug 05, 2020 7:37 pm

Re: [Plugin] Ratio

Postby Bobby » Sat Aug 22, 2020 2:12 pm

Any change of getting this for deluge 2.0 ? and maby even add a stats for session dl/ul that would be cool to track stats

User avatar
PhasecoreX
New User
New User
Posts: 2
Joined: Wed Sep 30, 2020 11:09 pm

Re: [Plugin] Ratio

Postby PhasecoreX » Wed Sep 30, 2020 11:20 pm

I made a version of this plugin that works on Deluge 2 (Python 3.8). You can find it here https://github.com/PhasecoreX/deluge-ratio, or I have built the egg and attached it here.

Enjoy!
Attachments
Ratio-2.0.1-py3.8.egg
(17.45 KiB) Downloaded 23 times
Last edited by PhasecoreX on Thu Oct 01, 2020 5:28 pm, edited 1 time in total.

benba
New User
New User
Posts: 6
Joined: Mon Oct 28, 2019 10:09 am

Re: [Plugin] Ratio

Postby benba » Thu Oct 01, 2020 3:46 pm

@PhasecoreX: tried it with 2.0.3 / webui, deluge isn't logging any errors, tips?

User avatar
PhasecoreX
New User
New User
Posts: 2
Joined: Wed Sep 30, 2020 11:09 pm

Re: [Plugin] Ratio

Postby PhasecoreX » Thu Oct 01, 2020 5:33 pm

If you're looking to have it specifically for the webui, the original didn't have that functionality so this one doesn't either. If you noticed that it broke in the regular gtk window, where the bottom labels weren't updating/were empty, I have updated my post with a new version (2.0.1).

benba
New User
New User
Posts: 6
Joined: Mon Oct 28, 2019 10:09 am

Re: [Plugin] Ratio

Postby benba » Thu Oct 01, 2020 10:12 pm

My bad, thanks for the hint.


Return to “Plugins”

Who is online

Users browsing this forum: No registered users and 5 guests