From 8a75979f72cb4de34cb61982fbc4ff44560184c5 Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Tue, 5 Feb 2019 17:18:55 +0100 Subject: [PATCH] Expose output_dir and media_file on TorrentCompletedDownloadEvent --- platypush/plugins/media/webtorrent.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/platypush/plugins/media/webtorrent.py b/platypush/plugins/media/webtorrent.py index 55fd5d237..c533622d7 100644 --- a/platypush/plugins/media/webtorrent.py +++ b/platypush/plugins/media/webtorrent.py @@ -238,7 +238,9 @@ class MediaWebtorrentPlugin(MediaPlugin): self._wait_for_player(player) self.logger.info('Torrent player terminated') - bus.post(TorrentDownloadCompletedEvent(resource=resource)) + bus.post(TorrentDownloadCompletedEvent(resource=resource, + output_dir=output_dir, + media_file=media_file)) try: self.quit() except: pass