Trung Thanh Tran
2016-06-30 17:10:43 UTC
Hi all,
When I download a torrent having a couple of files and catch file_completed_alert to know the downloaded file, this type does not exist anymore in libtorrent 1.1.0. Everything is ok in libtorrent 1.0.6. Below is my code
alerts = self.get_libtorrent_session.pop_alerts()
for alert in alerts:
alert_type = type(alert).__name__
#self.logger.info("Alert type " + alert_type)
if alert_type == "file_completed_alert":
torrent_handle = alert.handle
info_hash = torrent_handle.info_hash()
Please correct me if I am wrong.
Best regards,
When I download a torrent having a couple of files and catch file_completed_alert to know the downloaded file, this type does not exist anymore in libtorrent 1.1.0. Everything is ok in libtorrent 1.0.6. Below is my code
alerts = self.get_libtorrent_session.pop_alerts()
for alert in alerts:
alert_type = type(alert).__name__
#self.logger.info("Alert type " + alert_type)
if alert_type == "file_completed_alert":
torrent_handle = alert.handle
info_hash = torrent_handle.info_hash()
Please correct me if I am wrong.
Best regards,