Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug - remove method #45

Open
jaxnatax opened this issue Jan 23, 2018 · 1 comment
Open

bug - remove method #45

jaxnatax opened this issue Jan 23, 2018 · 1 comment

Comments

@jaxnatax
Copy link

jaxnatax commented Jan 23, 2018

Hallo,

Please confirm that you use the deluge's "internal deluge delete" function.
My problem is - your removal works but it not fires the deluge internal removal method, hence I cannot attach another plugin to it (eg running a script when torrent removal happens)

If you are not using this deluge internal procedure, then please:

  • change the autoremoveplus code accordingly to allow as cascading the plugins
    OR
  • implement a run script procedure on the remove event (I'd need torrent details handed over to the executed script)

Regards,
J

@shadycuz
Copy link

shadycuz commented Apr 7, 2019

@jaxnatax

def remove_torrent(self, torrentmanager, tid, remove_data):
try:
torrentmanager.remove(tid, remove_data=remove_data)
except Exception, e:
log.warn(
"AutoRemovePlus: Problems removing torrent: %s", e
)
try:
del self.torrent_states.config[tid]
except KeyError:
return False
else:
return True

It apears to use the Deluge remove funtion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants