Opened 9 years ago
Last modified 7 years ago
#2751 assigned feature-request
pass LABEL on execute plugin
Reported by: | jobrien2001 | Owned by: | Calum |
---|---|---|---|
Priority: | minor | Milestone: | Future |
Component: | Plugin | Version: | develop |
Keywords: | execute label | Cc: |
Description
I think the function responsible for this is get_torrent_status()
It would be great to be able to execute different commands based on the label of the torrents
Change History (6)
comment:1 by , 9 years ago
Owner: | set to |
---|---|
Status: | new → assigned |
Version: | 1.3.11 → develop (git) |
comment:2 by , 8 years ago
I know this would be useful but I would rather see a list of all available torrent status options for the user to select from, rather than being hardcoded.
This was something I had started working on and can push to a PR when I get a moment.
Just to note that your PR doesn't seem to account for the label plugin being disabled.
comment:3 by , 8 years ago
That would be more useful, but quite a bit more work to implement. If you don't get around to it I think just including labels would cover most of the use cases. Plus, including this change now wouldn't preclude updating it in the future.
Also, I think my code accounts for that. If "label" isn't found, get_status just won't return anything, and the plugin uses "get" instead of "[]", using "" for a default value.
comment:4 by , 8 years ago
20 months later, any progress on this? As a regular user, I have no idea about python, but this feature would be very useful for me even if it only included labels.
comment:5 by , 8 years ago
Owner: | changed from | to
---|
Don't know, they didn't take my change. Assigning to Cas for update.
comment:6 by , 7 years ago
Is there an update on this?
Cas did say "Just to note that your PR doesn't seem to account for the label plugin being disabled."
Maybe that is the issue?
Patch for develop: https://github.com/deluge-torrent/deluge/pull/102
Patch for 1.3 (no pull request since this is a feature): https://github.com/JimboMonkey1234/deluge/commits/1.3-stable-execute-label