'Method to convert the infohash_list to qBittorrent API friendly values.
:param infohash_list: List of infohash.'

@staticmethod
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
