'Returns a list of torrents matching the supplied filters.
:param status: Current status of the torrents.
:param label: Fetch all torrents with the supplied label. qbittorrent < 3.3.5
:param category: Fetch all torrents with the supplied label. qbittorrent >= 3.3.5
:param sort: Sort torrents by.
:param reverse: Enable reverse sorting.
:param limit: Limit the number of torrents returned.
:param offset: Set offset (if less than 0, offset from end).
:return: list() of torrent with matching filter.'

def torrents(self, status='active', label='', sort='priority', reverse=False, limit=10, offset=0):

    STATUS_LIST = ['all', 'downloading', 'completed', 'paused', 'active', 'inactive']
    if (status not in STATUS_LIST):
        raise ValueError('Invalid    status.')
    if (self.api_version < 10):
        params = {'filter': status, 'label': label, 'sort': sort, 'reverse': reverse, 'limit': limit, 'offset': offset}
    elif (self.api_version >= 10):
        params = {'filter': status, 'category': label, 'sort': sort, 'reverse': reverse, 'limit': limit, 'offset': offset}
    return self._get('query/torrents', params=params)
