def _process_infohash_list(infohash_list):
        """
        Method to convert the infohash_list to qBittorrent API friendly values.

        :param infohash_list: List of infohash.
        """
        if isinstance(infohash_list, list):
            data = {'hashes': '|'.join([h.lower() for h in infohash_list])}
        else:
            data = {'hashes': infohash_list.lower()}
        return data
def _process_infohash_list ( infohash_list ) : if isinstance ( infohash_list , list ) : data = { 'hashes' : '|' . join ( [ h . lower ( ) for h in infohash_list ] ) } else : data = { 'hashes' : infohash_list . lower ( ) } return data
Method to convert the infohash_list to qBittorrent API friendly values.

        :param infohash_list: List of infohash.