You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Otherwise the state file will continue growing indefinitely.
Note atm we do clean it up if ARP itself removes the torrent, but not in cases where torrent deletion is triggered by 3rd party.
We should remove current deletion (del self.torrent_states.config[tid] in remove_torrent()) and instead register a torrent removed event handler, eg what LabelPlus plugin does:
deluge.component.get("EventManager").register_event_handler(
"PreTorrentRemovedEvent", self.on_torrent_removed)
def on_torrent_removed(self, torrent_id):
if torrent_id in self._mappings:
label_id = self._mappings[torrent_id]
self._remove_torrent_label(torrent_id)
log.debug("Removing torrent %r from label %r", torrent_id, label_id)
self._timestamp["mappings_changed"] = datetime.datetime.now()
The text was updated successfully, but these errors were encountered:
Otherwise the state file will continue growing indefinitely.
Note atm we do clean it up if ARP itself removes the torrent, but not in cases where torrent deletion is triggered by 3rd party.
We should remove current deletion (
del self.torrent_states.config[tid]
in remove_torrent()) and instead register a torrent removed event handler, eg what LabelPlus plugin does:The text was updated successfully, but these errors were encountered: