diff --git a/src/tribler/core/libtorrent/download_manager/download_manager.py b/src/tribler/core/libtorrent/download_manager/download_manager.py index 42ecd02286..3b1916cd47 100644 --- a/src/tribler/core/libtorrent/download_manager/download_manager.py +++ b/src/tribler/core/libtorrent/download_manager/download_manager.py @@ -754,6 +754,14 @@ async def start_handle(self, download: Download, atp: dict) -> None: _ = self.replace_task(f"AddTorrent{infohash}", self._async_add_torrent, ltsession, infohash, atp, ignore=(Exception,)) + self.notifier.notify(Notification.torrent_metadata_added, metadata={ + "infohash": infohash, + "size": download.tdef.get_length(), + "title": download.tdef.get_name_utf8(), + "metadata_type": 300, + "tracker_info": (list(download.tdef.get_trackers()) or [""])[0] + }) + async def _async_add_torrent(self, ltsession: lt.session, infohash: bytes , atp: dict) -> None: self._logger.debug("Adding handle %s", hexlify(infohash)) # To prevent flooding the DHT with a short burst of queries and triggering