Commits

recursiveforest committed 8edc760

Fix torrent_dir being ignored.

  • Participants
  • Parent commits 22f5db3

Comments (0)

Files changed (1)

 
 			if options.output and options.passkey and options.tracker and not options.notorrent:
 				if options.verbose: print('Creating torrent...')
-				torrent_command = 'mktorrent -p -a %s/announce -o "%s.torrent" "%s"' % (options.tracker + options.passkey, escape_backtick(options.output + os.path.basename(mp3_dir)), mp3_dir)
+				torrent_command = 'mktorrent -p -a %s/announce -o "%s.torrent" "%s"' % (options.tracker + options.passkey, escape_backtick(options.torrent_dir + os.path.basename(mp3_dir)), mp3_dir)
 				if options.verbose: print(escape_backtick(torrent_command))
 				os.system(escape_backtick(torrent_command))