Skip to content

Commit

Permalink
Rehash .torrent with correct name if using torf
Browse files Browse the repository at this point in the history
  • Loading branch information
L4GSP1KE committed Oct 11, 2023
1 parent 10ef647 commit ad8f6d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/prep.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ad8f6d6

Please sign in to comment.