'.. http:get:: /channels/discovered/(string: channelid)/torrents
A GET request to this endpoint returns all discovered torrents in a specific channel. The size of the torrent is
in number of bytes. The last_tracker_check value will be 0 if we did not check the tracker state of the torrent
yet. Optionally, we can disable the family filter for this particular request by passing the following flag:
- disable_filter: whether the family filter should be disabled for this request (1 = disabled)
**Example request**:
.. sourcecode:: none
curl -X GET http://localhost:8085/channels/discovered/da69aaad39ccf468aba2ab9177d5f8d8160135e6/torrents
**Example response**:
.. sourcecode:: javascript
"torrents": [{
"id": 4,
"infohash": "97d2d8f5d37e56cfaeaae151d55f05b077074779",
"name": "Ubuntu-16.04-desktop-amd64",
"size": 8592385,
"category": "other",
"num_seeders": 42,
"num_leechers": 184,
"last_tracker_check": 1463176959
:statuscode 404: if the specified channel cannot be found.'

def render_GET(self, request):

    channel_info = self.get_channel_from_db(self.cid)
    if (channel_info is None):
        return ChannelsTorrentsEndpoint.return_404(request)
    torrent_db_columns = ['Torrent.torrent_id', 'infohash', 'Torrent.name', 'length', 'Torrent.category', 'num_seeders', 'num_leechers', 'last_tracker_check', 'ChannelTorrents.inserted']
    results_local_torrents_channel = self.channel_db_handler.getTorrentsFromChannelId(channel_info[0], True, torrent_db_columns)
    should_filter = self.session.config.get_family_filter_enabled()
    if (('disable_filter' in request.args) and (len(request.args['disable_filter']) > 0) and (request.args['disable_filter'][0] == '1')):
        should_filter = False
    results_json = []
    for torrent_result in results_local_torrents_channel:
        torrent_json = convert_db_torrent_to_json(torrent_result)
        if ((torrent_json['name'] is None) or (should_filter and (torrent_json['category'] == 'xxx'))):
            continue
        results_json.append(torrent_json)
    return json.dumps({'torrents': results_json})
