def download_from_file(self, file_buffer, **kwargs):
if isinstance(file_buffer, list):<EOL><INDENT>torrent_files = {}<EOL>for i, f in enumerate(file_buffer):<EOL><INDENT>torrent_files.update({'<STR_LIT>' % i: f})<EOL><DEDENT><DEDENT>else:<EOL><INDENT>torrent_files = {'<STR_LIT>': file_buffer}<EOL><DEDENT>data = kwargs.copy()<EOL>if data.get('<STR_LIT>'):<EOL><INDENT>data.update({'<STR_LIT>': data['<STR_LIT>']})<EOL><DEDENT>return self._post('<STR_LIT>', data=data, files=torrent_files)<EOL>
Download torrent using a file.

:param file_buffer: Single file() buffer or list of.
:param save_path: Path to download the torrent.
:param label: Label of the torrent(s).

:return: Empty JSON data.