def download_from_file(self, file_buffer,
                           save_path=None, label=''):
        if isinstance(file_buffer, list):
            torrent_files = {}
            for i, f in enumerate(file_buffer):
                torrent_files.update({'torrents%s' % i: f})
        else:
            torrent_files = {'torrents': file_buffer}

        data = {}

        if save_path:
            data.update({'savepath': save_path})
        if label:
            data.update({'label': label})
        return self._post('command/upload', data=data, files=torrent_files)
Extracts tuples representing comments and localization entries from strings file.
dataset/ETHPy150Open v1k45/python-qBittorrent/qbittorrent/client.py/Client.download_from_file--crossover with--dataset/ETHPy150Open joytunes/JTLocalize/localization_flow/jtlocalize/core/localization_utils.py/extract_header_comment_key_value_tuples_from_file