

def add_task_bt(self, filename, select=False):
    '\n        Add a new BT task\n\n        :param str filename: path to torrent file to upload\n        :param bool select: whether to select files in the torrent.\n\n            * True: it returns the opened torrent (:class:`.Torrent`) and\n                can then iterate files in :attr:`.Torrent.files` and\n                select/unselect them before calling :meth:`.Torrent.submit`\n            * False: it will submit the torrent with default selected files\n\n        '
    filename = eval_path(filename)
    u = self.upload(filename, self.torrents_directory)
    t = self._load_torrent(self)
    if select:
        return t
    return t.submit()

dataset/ETHPy150Open shichao-an/115wangpan/u115/api.py API.add_task_bt/VarMisuse@44/214 `u`->`self`