'Returns the torrent search results over the events endpoint.'

def on_search_results_torrents(self, subject, changetype, objectID, results):

    query = '    '.join(results['keywords'])
    for torrent in results['result_list']:
        torrent_json = convert_search_torrent_to_json(torrent)
        if (self.session.config.get_family_filter_enabled() and (torrent_json['category'] == 'xxx')):
            continue
        if (('infohash' in torrent_json) and (torrent_json['infohash'] not in self.infohashes_sent)):
            self.write_data({'type': 'search_result_torrent', 'event': {'query': query, 'result': torrent_json}})
            self.infohashes_sent.add(torrent_json['infohash'])
