diff --git a/src/prep.py b/src/prep.py index 60d0c731e..7bbbd970a 100644 --- a/src/prep.py +++ b/src/prep.py @@ -1999,7 +1999,7 @@ def create_torrent(self, meta, path, output_filename, piece_size_max): torrent.piece_size = 2**piece_size torrent.piece_size_max = 16777216 torrent.generate(callback=self.torf_cb, interval=5) - torrent.write(f"{meta['base_dir']}/tmp/{meta['uuid']}/BASE.torrent", overwrite=True) + torrent.write(f"{meta['base_dir']}/tmp/{meta['uuid']}/{output_filename}.torrent", overwrite=True) torrent.verify_filesize(path) console.print("[bold green].torrent created", end="\r") return torrent