def convert_search_torrent_to_json(torrent):
 if isinstance(torrent, dict):
  return convert_remote_torrent_to_json(torrent)
 return convert_db_torrent_to_json(torrent, include_rel_score=True)

def convert_search_torrent_to_json ( torrent ) : if isinstance ( torrent , dict ) : return convert_remote_torrent_to_json ( torrent ) return convert_db_torrent_to_json ( torrent , include_rel_score = True )
converts a given torrent to a json dictionary .