[Plugin] Auto Remove Plus v2.0.0

Suggest, post, or discuss plugins for Deluge
Post Reply
tote94
New User
New User
Posts: 6
Joined: Tue Jul 02, 2019 8:18 am

[Plugin] Auto Remove Plus v2.0.0

Post by tote94 »

Auto Remove Plus

This version is compatible only with Deluge 2.0.x. Older version for Deluge 1.3.x can be found here:
viewtopic.php?f=9&t=47243

Auto Remove Plus is a plugin for Deluge that you can use to automatically remove torrents. Based on Auto Remove by Jamie Lennox, later Auto Remove Plus by Omar Alvarez.

This is a Gtk3UI and WebUI plugin.

Features:
  • Select how many torrents are allowed at the same time.
  • Choose to remove or pause them based on multiple criteria age, seeders, seed time, ratio or size.
  • Set specific removal rules depending on tracker or label.
  • Remove only torrents from specific trackers or labels.
  • Only remove torrents if under a certain HDD space threshold.
  • Select if torrents have to fulfill both or either criteria.
  • Delete torrents in order (e.g. delete torrents with highest ratio first).
  • Don't remove torrents if they don't reach a minimum time (in hours), size or ratio.
  • Choose the removal interval.
  • Right click and select torrents that you don't want automatically removed.
  • Remove torrent data option.
  • Create an exempted tracker or label list, so that torrents that belong to those trackers or labels are not removed.
  • Fully functional WebUI.
  • Fully functional Gtk3UI.
Eggs:
AutoRemovePlus-2.0.0-py3.6.egg
(33.48 KiB) Downloaded 4548 times
AutoRemovePlus-2.0.0-py3.7.egg
(33.48 KiB) Downloaded 3426 times
AutoRemovePlus-2.0.0-py3.8.egg
(33.48 KiB) Downloaded 10631 times
Screenshot of the Gtk3UI: https://i.imgur.com/ntEmAJl.png

Source code: https://github.com/tote94/deluge-autoremoveplus

Usage:
Look for torrents to remove every hour:

Code: Select all

Check interval: 1.00
Look for torrents to remove every day:

Code: Select all

Check interval: 24.00
Remove every torrent that meets minimum criteria:

Code: Select all

Max. torrents: 0
Don't remove torrents unless Deluge has over 500:

Code: Select all

Max. torrents: 500
Remove torrents without checking free space:

Code: Select all

Min. free space: -1
Only remove torrents when the main HDD has less than 10 GB free:

Code: Select all

Min. free space: 10
Remove torrents that have a ratio over 2.0 and have been seeding for at least 4 days (96 hours):

Code: Select all

Remove by: Ratio, Min: 2.0, and, Remove by: Seed Time, Min: 96
Remove torrents that have a ratio over 2.0 or have been seeding for at least 4 days (96 hours):

Code: Select all

Remove by: Ratio, Min: 2.0, or, Remove by: Seed Time, Min: 96
Pause torrents instead of removing them:

Code: Select all

Uncheck the "Remove torrents" checkbox
The rest of the options are pretty self explanatory

Changelog:
Version 2.0.0
- Upgrade: Support for Deluge 2.0, Python 3 and Gtk 3
- Feature: Fully functional Gtk 3 user interface
- Feature: Changed time values from days to hours
- Feature: Removing by torrent size. (largest torrent first)
- Bug fix: Remove torrents only until it reaches the needed free space (one by one).

Version 0.6.2
- Bug fix: Save properly minimum values of specific remove rules in WebUI.

Version 0.6.1
- Bug fix: Fixed error loading settings on certain WebUI configurations.

Version 0.6
- Feature: Specific settings for trackers and labels.
- Feature: Remove only torrents from specific trackers or labels.
- Feature: Usability improvements.
- Bug fix: Correctly check in WebUI if saving preferences is necessary.
- Bug fix: Removal of torrents in order even when they are going to be deleted.

Version 0.5.1
- Bug fix: No label error fixed.

Version 0.5
- Feature: Exclude torrents based on labels.
- Feature: Only remove torrents if under a certain HDD space threshold.
- Feature: Threshold for removing torrents based on seed count.
- Feature: Pause instead of remove torrents.

Version 0.4
- Feature: Customizable removal interval. Times are expected as days.
- Feature: Multiple removal criteria.

Version 0.3
- Feature: Minimum value to delete torrents according to ratio, seed time or age. Times are expected as days.
- Feature: New filtering function seed time added.

Version 0.2
- Feature: Fully functional WebUI
- Feature: Exempted tracker list
- Bug fix: Exempted torrent toggle not showing correct value on first time

Version 0.1.1
- Feature: Remove torrent data option

Version 0.1
- Initial version
Last edited by tote94 on Fri Sep 18, 2020 5:51 am, edited 1 time in total.
mycent
New User
New User
Posts: 1
Joined: Sat Aug 01, 2020 8:01 pm

Re: [Plugin] Auto Remove Plus v2.0.0

Post by mycent »

Work perfectly.

Thank you very much. ;)
Bobby
Member
Member
Posts: 43
Joined: Wed Aug 05, 2020 7:37 pm

Re: [Plugin] Auto Remove Plus v2.0.0

Post by Bobby »

Yeah i tired it, but i cant get it working with the unoffical installer of deluge on windows i tired the version with python 3.8 in name, have anyone else got it working ?
mhertz
Moderator
Moderator
Posts: 2182
Joined: Wed Jan 22, 2014 5:05 am
Location: Denmark

Re: [Plugin] Auto Remove Plus v2.0.0

Post by mhertz »

@Bobby,

There's an issue currently, because of something I suggested to have incorporated recently(new loaders), so my fault, and I apologize for the inconvenience. Petersasi have older versions of his installers up on his download-link's 'archive' folder, and if checking his installer-changelog(readme), then installers from 21'th june, and older, should be unaffected.
Bobby
Member
Member
Posts: 43
Joined: Wed Aug 05, 2020 7:37 pm

Re: [Plugin] Auto Remove Plus v2.0.0

Post by Bobby »

@mhertz

It seems like yarrs2 dosnt work either, they show up in the plugin list but they wont enable, none of them and it dosnt help to change the python name to 3.8 or remove it.

tote94 thanks for creating this its amazing, i always loved deluge for plugins, and autoremove is one of the better ones :)
haroonie
New User
New User
Posts: 1
Joined: Thu Sep 17, 2020 10:31 pm

Re: [Plugin] Auto Remove Plus v2.0.0

Post by haroonie »

Thanks for your hard work and I'm happy to have this running again in Deluge!

Regarding the below Feature change, I believe this may have affected the rules. I tried the example rule: Remove by: Ratio, Min: 2.0, or, Remove by: Seed Time, Min: 4 -- where "Min: 4" is 4 days, however it ended up removing anything that was Min: 4 hours. I verified by putting in there the value 13, and torrents that were seeded 14 hours were removed and 12 hours were kept.

Unsure if this is expected behavior and needs documents updated or a bug.
Version 2.0.0
- Feature: Changed time values from days to hours
tote94
New User
New User
Posts: 6
Joined: Tue Jul 02, 2019 8:18 am

Re: [Plugin] Auto Remove Plus v2.0.0

Post by tote94 »

@haroonie,

You're right, I forgot to change the example in the documentation. Every time value that you set in the extension should be in hours now. So if you want a minimum 4 days seed time, set it to 96.
stokbaek
New User
New User
Posts: 1
Joined: Thu Oct 01, 2020 7:35 am

Re: [Plugin] Auto Remove Plus v2.0.0

Post by stokbaek »

Hey,

I tried installing your plugin but I can't seem to enable it. I am getting the following error message in the log. I used your 3.8 python version

Code: Select all

07:31:22.283 [WARNING ][deluge.pluginmanagerbase         :73  ] Problems occured disabling plugin: AutoRemovePlus
07:31:23.301 [ERROR   ][deluge.pluginmanagerbase         :79  ] Failed to start plugin: AutoRemovePlus
Traceback: <class 'json.decoder.JSONDecodeError'>: Expecting value: line 34 column 23 (char 741)
/usr/lib/python3.8/site-packages/twisted/internet/defer.py:151:maybeDeferred
/usr/lib/python3.8/site-packages/deluge/plugins/init.py:27:enable
/config/plugins/AutoRemovePlus-2.0.0-py3.8.egg/autoremoveplus/core.py:117:enable
/usr/lib/python3.8/site-packages/deluge/config.py:468:save
/usr/lib/python3.8/json/__init__.py:357:loads
/usr/lib/python3.8/json/decoder.py:337:decode
/usr/lib/python3.8/json/decoder.py:355:raw_decode
Enfo
New User
New User
Posts: 1
Joined: Thu Oct 01, 2020 4:24 pm

Re: [Plugin] Auto Remove Plus v2.0.0

Post by Enfo »

Thank you very much for updating this plugin!

If I want to do the following:
  • When disk space is under 100 GB, then...
  • remove any torrents over 60 days old,
  • Starting with the lowest ratio torrents first.
Would this be the correct way of achieving this?
Screenshot 2020-10-01 182817.png
Screenshot 2020-10-01 182817.png (90.53 KiB) Viewed 197921 times
bolshoi
Member
Member
Posts: 13
Joined: Sun Oct 25, 2020 5:42 am

Re: [Plugin] Auto Remove Plus v2.0.0

Post by bolshoi »

Thank you for updating this plugin!

This is working on Deluge 2 on MacOS, except I noticed it doesn't automatically remove by itself (I have it set every 6 hours), but i can manually trigger it if I update anything in the settings and hit OK. Any clue why the auto trigger isn't working? I used to have the old version installed (1.3) which was working without UI, do I need to manually remove it to avoid conflict?
Post Reply