def createTorrentBatch(self):
save_dir = QtWidgets.QFileDialog.getExistingDirectory(
self.MainWindow, 'Select output directory', self.last_output_dir)
if save_dir:
self.last_output_dir = save_dir
trackers = self.trackerEdit.toPlainText().strip().split()
web_seeds = self.webSeedEdit.toPlainText().strip().split()
self.creation_thread = CreateTorrentBatchQThread(
path=self.inputEdit.text(),
exclude=self.excludeEdit.toPlainText().strip().splitlines(),
save_dir=save_dir,
trackers=trackers,
web_seeds=web_seeds,
private=self.privateTorrentCheckBox.isChecked(),
source=self.sourceEdit.text(),
comment=self.commentEdit.text(),
include_md5=self.md5CheckBox.isChecked(),
)
self.creation_thread.started.connect(
self.creation_started)
self.creation_thread.progress_update.connect(
self._progress_update_batch)
self.creation_thread.finished.connect(
self.creation_finished)
self.creation_thread.onError.connect(
self._showError)
self.creation_thread.start()
评论列表
文章目录