From 4026ac0bf26d4ac77ede21cf02cb0eb8d4a4082e Mon Sep 17 00:00:00 2001 From: Andrew Resch Date: Tue, 1 Jul 2008 22:03:18 +0000 Subject: [PATCH] Add 'torrent_finished' signal --- deluge/core/torrentmanager.py | 1 + 1 file changed, 1 insertion(+) diff --git a/deluge/core/torrentmanager.py b/deluge/core/torrentmanager.py index 05e5bd16a..857b40557 100644 --- a/deluge/core/torrentmanager.py +++ b/deluge/core/torrentmanager.py @@ -607,6 +607,7 @@ class TorrentManager(component.Component): torrent.is_finished = True torrent.update_state() torrent.write_fastresume() + component.get("SignalManager").emit("torrent_finished", torrent_id) def on_alert_torrent_paused(self, alert): log.debug("on_alert_torrent_paused")