forked from platypush/platypush
Expose output_dir and media_file on TorrentCompletedDownloadEvent
This commit is contained in:
parent
f4dd4e0eb5
commit
8a75979f72
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue