Remove files before executing script
Posted: Sun Apr 16, 2023 9:23 pm
Hello,
I've recently updated to Deluge 2.0 from an old 1.3 instance, and found that the behavior of "Remove with Data" relative to the Execute plugin's "Torrent Removed" call seems to have changed. Previously, it would remove the data and no script would be executed (or would attempt to execute second), but now the script seems to execute first. I can understand why this would be desired, but I'm hoping someone knows of a means to replicate the old behavior. As far as I can tell, the script call doesn't have any way to discern whether the torrent was just removed or removed with data.
My use case has two situations:
1. Something Sonarr downloaded, which has been automatically copied to the correct folder and the original can just be deleted when seeding is done.
2. Something manually downloaded, which should be moved to the correct folder by a script once seeding is done and it's manually removed.
Previously, "Remove with Data" covered situation 1, and "Remove Torrent" with a move script called on "Torrent Removed" covered situation 2. Now both options call the move script and copy the data. Does anyone know of a workflow/script that could handle this problem?
Thanks
I've recently updated to Deluge 2.0 from an old 1.3 instance, and found that the behavior of "Remove with Data" relative to the Execute plugin's "Torrent Removed" call seems to have changed. Previously, it would remove the data and no script would be executed (or would attempt to execute second), but now the script seems to execute first. I can understand why this would be desired, but I'm hoping someone knows of a means to replicate the old behavior. As far as I can tell, the script call doesn't have any way to discern whether the torrent was just removed or removed with data.
My use case has two situations:
1. Something Sonarr downloaded, which has been automatically copied to the correct folder and the original can just be deleted when seeding is done.
2. Something manually downloaded, which should be moved to the correct folder by a script once seeding is done and it's manually removed.
Previously, "Remove with Data" covered situation 1, and "Remove Torrent" with a move script called on "Torrent Removed" covered situation 2. Now both options call the move script and copy the data. Does anyone know of a workflow/script that could handle this problem?
Thanks