Expose output_dir and media_file on TorrentCompletedDownloadEvent

This commit is contained in:
Fabio Manganiello 2019-02-05 17:18:55 +01:00
parent f4dd4e0eb5
commit 8a75979f72

View file

@ -238,7 +238,9 @@ class MediaWebtorrentPlugin(MediaPlugin):
self._wait_for_player(player) self._wait_for_player(player)
self.logger.info('Torrent player terminated') 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() try: self.quit()
except: pass except: pass